FullscreenUI: Fix returning to window that was open

e.g. disc swap hotkey
This commit is contained in:
Stenzek
2025-10-18 16:31:51 +10:00
parent b1cd5625f2
commit 2bc387fe33

View File

@@ -698,7 +698,7 @@ void FullscreenUI::SwitchToMainWindow(MainWindowType type)
if (s_state.current_main_window == type)
return;
s_state.previous_main_window = s_state.current_main_window;
s_state.previous_main_window = (type == MainWindowType::None) ? MainWindowType::None : s_state.current_main_window;
s_state.current_main_window = type;
if (!AreAnyDialogsOpen())
{