yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

Prevent window flickering when holding Esc

Reported on discord by Levlight. Don't try to exit fullscreen if it's already off.
This commit is contained in:
Valeri 2021-11-17 18:07:47 +03:00 committed by GitHub
parent 720970c4c1
commit f7e0a37753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ void GMainWindow::InitializeHotkeys() {
&QShortcut::activatedAmbiguously, ui->action_Fullscreen, &QAction::trigger);
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Exit Fullscreen"), this),
&QShortcut::activated, this, [&] {
if (emulation_running) {
if (emulation_running && ui->action_Fullscreen->isChecked()) {
ui->action_Fullscreen->setChecked(false);
ToggleFullscreen();
}