FullscreenUI: Fix fade on system start/stop

This commit is contained in:
Stenzek 2025-06-28 12:46:27 +10:00
parent 376a2e8d4d
commit 355c17bde9
No known key found for this signature in database

View File

@ -980,9 +980,11 @@ void FullscreenUI::OnSystemStarting()
if (!IsInitialized()) if (!IsInitialized())
return; return;
s_state.current_main_window = MainWindowType::None; BeginTransition(LONG_TRANSITION_TIME, []() {
QueueResetFocus(FocusResetType::ViewChanged); s_state.current_main_window = MainWindowType::None;
UpdateRunIdleState(); QueueResetFocus(FocusResetType::ViewChanged);
UpdateRunIdleState();
});
}); });
} }
@ -1031,7 +1033,7 @@ void FullscreenUI::OnSystemDestroyed()
s_state.pause_menu_was_open = false; s_state.pause_menu_was_open = false;
s_state.was_paused_on_quick_menu_open = false; s_state.was_paused_on_quick_menu_open = false;
s_state.current_pause_submenu = PauseSubMenu::None; s_state.current_pause_submenu = PauseSubMenu::None;
ReturnToMainWindow(); ReturnToMainWindow(LONG_TRANSITION_TIME);
}); });
} }