Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
fix: last opened project reset unnecessarily (fixes #1225)
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Nov 9, 2023
1 parent 9d3386f commit 607455d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,14 @@ abstract class ProjectHandlerActivity : BaseEditorActivity() {
// this is needed because in this case, the opened files cache will be empty
// when onPause will be called.
saveOpenedFiles()

// reset the lastOpenedProject if the user explicitly chose to close the project
lastOpenedProject = NO_OPENED_PROJECT
}

// Make sure we close files
// This will make sure that file contents are not erased.
doCloseAll {
lastOpenedProject = NO_OPENED_PROJECT
if (manualFinish) {
finish()
}
Expand Down

0 comments on commit 607455d

Please sign in to comment.