Skip to content

Commit

Permalink
Disabled last project reload on crash
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Oct 11, 2023
1 parent 5a32485 commit 4180e6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ TODO: Updated app logo!
- Fixed the "Enable/disable rule" button
- Fixed typo in "Entities" sample map
- Fixed the "New update" banner depth in changelog
- If the app crashes, LDtk won't try to reload the last project, but instead will go the Home screen (preventing crash loops)
- Updated app splash screen


Expand Down
6 changes: 6 additions & 0 deletions src/electron.renderer/page/CrashReport.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ class CrashReport extends Page {
else
jBackup.hide();

// Try to disable last project auto-reload
try {
settings.v.lastProject = null;
settings.save();
}
catch(_) {}
}
catch(e:Dynamic) {
jError.html( "Double error: "+Std.string(e) + "\n" + error.stack );
Expand Down

0 comments on commit 4180e6b

Please # to comment.