graph drawing tool

bugfix: open empty files

Why this matters:

  • Right now there tends to be no way (in this app and for most of my LÖVE apps) to open a new file.
  • The obvious workaround without access to a terminal is to create a new file and drop it on the app window.

So it's important for my apps, when they edit a single file, to handle an empty input file.

It's also important to remember that json.decode will raise an error on an empty string. I don't think my other apps (except forks of snap.love) have an issue with this. They tend to open existing files, create files before opening them (mastodon-unfurl) or not have purely JSON-based file formats.

Created by  Kartik K. Agaram  on July 10, 2023
SSQJT2LTIOEXIR5ZL4RCFS5YGD5IOJ4KDAGNCN6W6FRPSE2HJFKAC
Change contents