Better mechanism to fade out the side bar when not on EmuScreen

This commit is contained in:
Henrik Rydgård committed 2023-07-16 08:55:48 +02:00
1 parent 393531317e
commit 6bb97b3d46
6 files changed
+31 -10

No files matched your search

+2 -1
View File
@@ -197,7 +197,6 @@ EmuScreen::EmuScreen(const Path &filename)
// Usually, we don't want focus movement enabled on this screen, so disable on start.
// Only if you open chat or dev tools do we want it to start working.
UI::EnableFocusMovement(false);
g_OSD.SetShowSidebar(true);
}
bool EmuScreen::bootAllowStorage(const Path &filename) {
@@ -1480,6 +1479,8 @@ void EmuScreen::render() {
if (!thin3d)
return; // shouldn't really happen but I've seen a suspicious stack trace..
g_OSD.NudgeSidebar();
if (invalid_) {
// Loading, or after shutdown?
if (loadingTextView_->GetVisibility() == UI::V_VISIBLE)