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())
return;
s_state.current_main_window = MainWindowType::None;
QueueResetFocus(FocusResetType::ViewChanged);
UpdateRunIdleState();
BeginTransition(LONG_TRANSITION_TIME, []() {
s_state.current_main_window = MainWindowType::None;
QueueResetFocus(FocusResetType::ViewChanged);
UpdateRunIdleState();
});
});
}
@ -1031,7 +1033,7 @@ void FullscreenUI::OnSystemDestroyed()
s_state.pause_menu_was_open = false;
s_state.was_paused_on_quick_menu_open = false;
s_state.current_pause_submenu = PauseSubMenu::None;
ReturnToMainWindow();
ReturnToMainWindow(LONG_TRANSITION_TIME);
});
}