diff options
author | FearlessTobi <thm.frey@gmail.com> | 2020-03-28 02:31:35 +0100 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2020-03-28 02:31:35 +0100 |
commit | 8ba06aa4e1da6dc7b4fa761dba28165d8a634f84 (patch) | |
tree | 6825de2a1c89b2b7be588c21ddbc1262cef568f0 /src/yuzu/main.cpp | |
parent | 7a2f60df264113b1bdcf885aebf4ed3d05b89bce (diff) |
yuzu: fix the stuck in fullscreen mode bug
Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com>
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r-- | src/yuzu/main.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 4769a612e3..415a64b1eb 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(); |