Save project config on close
This commit is contained in:
parent
0012ea83e6
commit
80497805a1
2 changed files with 2 additions and 2 deletions
|
@ -81,6 +81,7 @@ void Editor::saveUiFields() {
|
|||
void Editor::closeProject() {
|
||||
if (!this->project)
|
||||
return;
|
||||
this->project->saveConfig();
|
||||
Scripting::cb_ProjectClosed(this->project->root);
|
||||
Scripting::stop();
|
||||
clearMap();
|
||||
|
|
|
@ -571,8 +571,7 @@ bool MainWindow::openProject(QString dir, bool initial) {
|
|||
}
|
||||
|
||||
// Only create the config files once the project has opened successfully in case the user selected an invalid directory
|
||||
userConfig.save();
|
||||
projectConfig.save();
|
||||
this->editor->project->saveConfig();
|
||||
|
||||
showWindowTitle();
|
||||
this->statusBar()->showMessage(QString("Opened %1").arg(projectString));
|
||||
|
|
Loading…
Reference in a new issue