parent
a36d78305a
commit
b7e63d2ee8
3 changed files with 12 additions and 9 deletions
|
|
@ -6573,6 +6573,7 @@ bool FurnaceGUI::loop() {
|
|||
if (ImGui::Button(_("Yes"))) {
|
||||
e->factoryReset();
|
||||
quit=true;
|
||||
quitNoSave=true;
|
||||
ImGui::CloseCurrentPopup();
|
||||
}
|
||||
popDestColor();
|
||||
|
|
@ -8378,13 +8379,15 @@ void FurnaceGUI::commitState(DivConfig& conf) {
|
|||
}
|
||||
|
||||
bool FurnaceGUI::finish(bool saveConfig) {
|
||||
commitState(e->getConfObject());
|
||||
if (userPresetsOpen) {
|
||||
saveUserPresets(true);
|
||||
}
|
||||
if (saveConfig) {
|
||||
logI("saving config.");
|
||||
e->saveConf();
|
||||
if (!quitNoSave) {
|
||||
commitState(e->getConfObject());
|
||||
if (userPresetsOpen) {
|
||||
saveUserPresets(true);
|
||||
}
|
||||
if (saveConfig) {
|
||||
logI("saving config.");
|
||||
e->saveConf();
|
||||
}
|
||||
}
|
||||
rend->quitGUI();
|
||||
ImGui_ImplSDL2_Shutdown();
|
||||
|
|
@ -8484,6 +8487,7 @@ FurnaceGUI::FurnaceGUI():
|
|||
replacePendingSample(false),
|
||||
displayExportingROM(false),
|
||||
displayExportingCS(false),
|
||||
quitNoSave(false),
|
||||
changeCoarse(false),
|
||||
mobileEdit(false),
|
||||
killGraphics(false),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue