diff options
| author | 2020-03-28 02:31:35 +0100 | |
|---|---|---|
| committer | 2020-03-28 02:31:35 +0100 | |
| commit | 8ba06aa4e1da6dc7b4fa761dba28165d8a634f84 (patch) | |
| tree | 6825de2a1c89b2b7be588c21ddbc1262cef568f0 | |
| parent | Merge pull request #3565 from ReinUsesLisp/image-format (diff) | |
| download | yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.gz yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.tar.xz yuzu-8ba06aa4e1da6dc7b4fa761dba28165d8a634f84.zip | |
yuzu: fix the stuck in fullscreen mode bug
Co-Authored-By: Valentin Vanelslande <vvanelslandedev@gmail.com>
| -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 4769a612e..415a64b1e 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1034,6 +1034,14 @@ void GMainWindow::BootGame(const QString& filename) { | |||
| 1034 | } | 1034 | } |
| 1035 | 1035 | ||
| 1036 | void GMainWindow::ShutdownGame() { | 1036 | void GMainWindow::ShutdownGame() { |
| 1037 | if (!emulation_running) { | ||
| 1038 | return; | ||
| 1039 | } | ||
| 1040 | |||
| 1041 | if (ui.action_Fullscreen->isChecked()) { | ||
| 1042 | HideFullscreen(); | ||
| 1043 | } | ||
| 1044 | |||
| 1037 | AllowOSSleep(); | 1045 | AllowOSSleep(); |
| 1038 | 1046 | ||
| 1039 | discord_rpc->Pause(); | 1047 | discord_rpc->Pause(); |