From 0bfda9955cd173a90d134007fb959b87084c795b Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 23 Jan 2023 00:09:31 +0100 Subject: [PATCH] Made the splash screen progress bar animation slightly smoother. --- es-app/src/SystemData.cpp | 2 ++ es-app/src/views/ViewController.cpp | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/es-app/src/SystemData.cpp b/es-app/src/SystemData.cpp index 2a6ba2d1d..14aee5f1d 100644 --- a/es-app/src/SystemData.cpp +++ b/es-app/src/SystemData.cpp @@ -749,6 +749,8 @@ bool SystemData::loadConfig() sSystemVector.emplace_back(newSys); } } + if (splashScreen) + Window::getInstance()->renderSplashScreen(Window::SplashScreenState::SCANNING, 0.5f); } // Sort systems by sortName, which will normally be the same as the full name. diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index fbbd10750..37ca8ee66 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -1104,9 +1104,6 @@ void ViewController::preload() { unsigned int systemCount {static_cast(SystemData::sSystemVector.size())}; - if (Settings::getInstance()->getBool("SplashScreen")) - mWindow->renderSplashScreen(Window::SplashScreenState::POPULATING, 0.5f); - // This reduces the amount of texture pop-in when loading theme extras. if (!SystemData::sSystemVector.empty()) getSystemListView();