mirror of
https://github.com/hedge-dev/UnleashedRecomp.git
synced 2026-04-26 12:21:39 +00:00
Fix quit prompt not appearing when closing the game from the taskbar.
This commit is contained in:
parent
dc39969ccd
commit
12b967b622
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue