summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-03-28 05:28:31 +0100
committerGitHub <noreply@github.com>2020-03-28 05:28:31 +0100
commit9bd998037265d97179962fb9d2e500a05caad3dc (patch)
tree68c39d50412683dd50e03e4e93937f0e7cea2c51
parentMerge pull request #3574 from FearlessTobi/port-5093 (diff)
parentyuzu: fix the stuck in fullscreen mode bug (diff)
downloadyuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar.gz
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar.bz2
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar.lz
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar.xz
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.tar.zst
yuzu-9bd998037265d97179962fb9d2e500a05caad3dc.zip
-rw-r--r--src/yuzu/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 4769a612e..415a64b1e 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -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();