yuzu: fix the stuck in fullscreen mode bug

Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com>
merge-requests/60/head
FearlessTobi 2020-03-28 02:31:35 +07:00
parent 7a2f60df26
commit 8ba06aa4e1
1 changed files with 8 additions and 0 deletions

@ -1034,6 +1034,14 @@ void GMainWindow::BootGame(const QString& filename) {
}
void GMainWindow::ShutdownGame() {
if (!emulation_running) {
return;
}
if (ui.action_Fullscreen->isChecked()) {
HideFullscreen();
}
AllowOSSleep();
discord_rpc->Pause();