From 12b967b622df19275a560471850bb999baf7da52 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 7 Feb 2025 01:13:19 +0300 Subject: [PATCH] Fix quit prompt not appearing when closing the game from the taskbar. --- UnleashedRecomp/ui/installer_wizard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnleashedRecomp/ui/installer_wizard.cpp b/UnleashedRecomp/ui/installer_wizard.cpp index 879719ae..c99968c3 100644 --- a/UnleashedRecomp/ui/installer_wizard.cpp +++ b/UnleashedRecomp/ui/installer_wizard.cpp @@ -175,19 +175,19 @@ public: if (!InstallerWizard::s_isVisible) return false; - bool inputAllowed = g_currentMessagePrompt.empty() && !g_currentPickerVisible && hid::IsInputAllowed(); + bool noModals = g_currentMessagePrompt.empty() && !g_currentPickerVisible; if (event->type == SDL_QUIT && g_currentPage == WizardPage::Installing) { // Pretend the back button was pressed if the user tried quitting during installation. // This condition is above the rest of the event processing as we want to block the exit // button while there's confirmation message is open as well. - if (inputAllowed) + if (noModals) g_currentCursorBack = true; return true; } - if (!inputAllowed) + if (!noModals || !hid::IsInputAllowed()) return false; constexpr float AxisValueRange = 32767.0f;