cibikle / LaSSI

LaSSI (the Last Starship Save Inspector) is a free, open source, cross-platform, fan-made tool for inspecting and editing save files for "The Last Starship" by Introversion Software (https://www.introversion.co.uk/introversion/). Cross-platform UI made possible by Eto (https://github.com/picoe/Eto)
GNU Affero General Public License v3.0
3 stars 3 forks source link

Load on start doesn't set backup directory #102

Closed cibikle closed 7 months ago

cibikle commented 7 months ago

Since the backup directory is set when the Open file dialog returns and the Open file dialog isn't involved when auto-loading a file on program start, the backup directory doesn't get set nor a backup created.

cibikle commented 7 months ago

Moved the backup start call into the LoadFile() method (which is called regardless of whether the file chooser is use or not) and added a param to flag if this is a load after a save to prevent unnecessary/crossing backups.