RMG: save geomtry in closeEvent() when emulation isn't running

This commit is contained in:
Rosalie Wanders committed 2023-01-03 16:10:26 +01:00
1 parent f72688773a
commit be437afd2f
1 file changed
+9
+9
View File
@@ -103,6 +103,15 @@ void MainWindow::OpenROM(QString file, QString disk, bool fullscreen, bool quitA
void MainWindow::closeEvent(QCloseEvent *event)
{
// we have to make sure we save the geomtry
// for the ROM browser when emulation
// isn't running (or hasn't run at all)
if (!this->ui_QuitAfterEmulation &&
!this->emulationThread->isRunning())
{
this->storeGeometry();
}
this->ui_NoSwitchToRomBrowser = true;
this->on_Action_System_Shutdown();