Explorar el Código

Prevent window flickering when holding Esc

Reported on discord by Levlight. Don't try to exit fullscreen if it's already off.
Valeri hace 4 años
padre
commit
f7e0a37753
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/yuzu/main.cpp

+ 1 - 1
src/yuzu/main.cpp

@@ -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();
                 }