Skip to content

Commit 355c17b

Browse files
committed
FullscreenUI: Fix fade on system start/stop
1 parent 376a2e8 commit 355c17b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/core/fullscreen_ui.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -980,9 +980,11 @@ void FullscreenUI::OnSystemStarting()
980980
if (!IsInitialized())
981981
return;
982982

983-
s_state.current_main_window = MainWindowType::None;
984-
QueueResetFocus(FocusResetType::ViewChanged);
985-
UpdateRunIdleState();
983+
BeginTransition(LONG_TRANSITION_TIME, []() {
984+
s_state.current_main_window = MainWindowType::None;
985+
QueueResetFocus(FocusResetType::ViewChanged);
986+
UpdateRunIdleState();
987+
});
986988
});
987989
}
988990

@@ -1031,7 +1033,7 @@ void FullscreenUI::OnSystemDestroyed()
10311033
s_state.pause_menu_was_open = false;
10321034
s_state.was_paused_on_quick_menu_open = false;
10331035
s_state.current_pause_submenu = PauseSubMenu::None;
1034-
ReturnToMainWindow();
1036+
ReturnToMainWindow(LONG_TRANSITION_TIME);
10351037
});
10361038
}
10371039

0 commit comments

Comments
 (0)