mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-08-21 19:43:25 +02:00
Fixed #7502
This commit is contained in:
parent
e482dd82b9
commit
7220056974
@ -1082,14 +1082,15 @@ void GMainWindow::OnAppFocusStateChanged(Qt::ApplicationState state) {
|
|||||||
state != Qt::ApplicationActive) {
|
state != Qt::ApplicationActive) {
|
||||||
LOG_DEBUG(Frontend, "ApplicationState unusual flag: {} ", state);
|
LOG_DEBUG(Frontend, "ApplicationState unusual flag: {} ", state);
|
||||||
}
|
}
|
||||||
if (ui->action_Pause->isEnabled() &&
|
if (emulation_running) {
|
||||||
(state & (Qt::ApplicationHidden | Qt::ApplicationInactive))) {
|
if (emu_thread->IsRunning() &&
|
||||||
auto_paused = true;
|
(state & (Qt::ApplicationHidden | Qt::ApplicationInactive))) {
|
||||||
OnPauseGame();
|
auto_paused = true;
|
||||||
} else if (emulation_running && !emu_thread->IsRunning() && auto_paused &&
|
OnPauseGame();
|
||||||
state == Qt::ApplicationActive) {
|
} else if (!emu_thread->IsRunning() && auto_paused && state == Qt::ApplicationActive) {
|
||||||
auto_paused = false;
|
auto_paused = false;
|
||||||
OnStartGame();
|
OnStartGame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user