mirror of
https://github.com/stenzek/duckstation.git
synced 2026-02-08 07:14:31 +00:00
FullscreenUI: Fix returning to window that was open
e.g. disc swap hotkey
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user