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() {
|
void Editor::closeProject() {
|
||||||
if (!this->project)
|
if (!this->project)
|
||||||
return;
|
return;
|
||||||
|
this->project->saveConfig();
|
||||||
Scripting::cb_ProjectClosed(this->project->root);
|
Scripting::cb_ProjectClosed(this->project->root);
|
||||||
Scripting::stop();
|
Scripting::stop();
|
||||||
clearMap();
|
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
|
// Only create the config files once the project has opened successfully in case the user selected an invalid directory
|
||||||
userConfig.save();
|
this->editor->project->saveConfig();
|
||||||
projectConfig.save();
|
|
||||||
|
|
||||||
showWindowTitle();
|
showWindowTitle();
|
||||||
this->statusBar()->showMessage(QString("Opened %1").arg(projectString));
|
this->statusBar()->showMessage(QString("Opened %1").arg(projectString));
|
||||||
|
|
Loading…
Reference in a new issue