VERY experimental Nintendo Switch 2 emulator
C++
Fixed #7502
Adam Heinermanna017f3cb43b2
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cppindex f266fd9632..77f2375eaf 100644--- a/src/yuzu/main.cpp+++ b/src/yuzu/main.cpp@@ -1082,14 +1082,15 @@ void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {state != Qt::ApplicationActive) {LOG_DEBUG(Frontend, "ApplicationState unusual flag: {} ", state);}- if (ui->action_Pause->isEnabled() &&- (state & (Qt::ApplicationHidden | Qt::ApplicationInactive))) {- auto_paused = true;- OnPauseGame();- } else if (emulation_running && !emu_thread->IsRunning() && auto_paused &&- state == Qt::ApplicationActive) {- auto_paused = false;- OnStartGame();+ if (emulation_running) {+ if (emu_thread->IsRunning() &&+ (state & (Qt::ApplicationHidden | Qt::ApplicationInactive))) {+ auto_paused = true;+ OnPauseGame();+ } else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {+ auto_paused = false;+ OnStartGame();+ }}}