Fix auto exit

- Don't quit on stop if force boot was set
- Don't stop the emulator on gs_frame close when it was already stopped. This would remove the force boot flag by mistake.
This commit is contained in:
Megamouse 2020-08-28 23:00:37 +02:00 committed by Ivan
parent 8228a4adcd
commit 5076da8f77
2 changed files with 6 additions and 2 deletions

View file

@ -285,7 +285,11 @@ bool gs_frame::get_mouse_lock_state()
void gs_frame::close()
{
Emu.Stop();
if (!Emu.IsStopped())
{
Emu.Stop();
}
Emu.CallAfter([this]() { deleteLater(); });
}