Skip to content

Commit

Permalink
docs: autosave comment
Browse files Browse the repository at this point in the history
  • Loading branch information
binary1230 committed Dec 16, 2023
1 parent 8a62b7b commit 1569b31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DiztinGUIsh/window/MainWindow.Actions.cs
Expand Up @@ -18,9 +18,10 @@ private void OpenLastProject()
if (Document.LastProjectFilename == "")
return;

// safeguard: if we crash opening this project,
// then next time we load make sure we don't try it again.
// this will be reset later
// safeguard: during automatic loading of projects at startup,
// temporarily un-set the "last project opened filename".
// this is because, if we crash, the next time the app starts it won't crash again :)
// after this is loaded successfully, we'll set the filename again so this loads successfully.
var projectToOpen = Document.LastProjectFilename;
Document.LastProjectFilename = "";

Expand Down

0 comments on commit 1569b31

Please sign in to comment.