mirror of
https://github.com/huderlem/porymap.git
synced 2026-08-13 12:26:05 -05:00
Fix project settings editor regression
This commit is contained in:
@@ -282,6 +282,9 @@
|
||||
<property name="toolTip">
|
||||
<string>The file that will be used to populate the Prefabs tab</string>
|
||||
</property>
|
||||
<property name="placeholderText">
|
||||
<string>prefabs.json</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
|
||||
@@ -389,13 +389,15 @@ void ProjectSettingsEditor::closeEvent(QCloseEvent* event) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->projectNeedsReload) {
|
||||
if (this->prompt("Settings changed, reload project to apply changes?") == QMessageBox::Yes)
|
||||
emit this->reloadProject();
|
||||
}
|
||||
|
||||
porymapConfig.setProjectSettingsEditorGeometry(
|
||||
this->saveGeometry(),
|
||||
this->saveState()
|
||||
);
|
||||
|
||||
if (this->projectNeedsReload) {
|
||||
if (this->prompt("Settings changed, reload project to apply changes?") == QMessageBox::Yes){
|
||||
// Reloading the project will destroy this window, no other work should happen after this signal is emitted
|
||||
emit this->reloadProject();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user