VERY experimental Nintendo Switch 2 emulator
C++
Hide progress bar on Prepare step
James Roweb2e68f104e52
diff --git a/src/yuzu/loading_screen.cpp b/src/yuzu/loading_screen.cppindex 617b8c858a..530f5173ca 100644--- a/src/yuzu/loading_screen.cpp+++ b/src/yuzu/loading_screen.cpp@@ -46,12 +46,8 @@ LoadingScreen::LoadingScreen(QWidget* parent)progressbar_style = {{VideoCore::LoadCallbackStage::Prepare,R"(-QProgressBar {- background-color: black;-}-QProgressBar::chunk {- background-color: white;-})"},+QProgressBar {}+QProgressBar::chunk {})"},{VideoCore::LoadCallbackStage::Raw,R"(QProgressBar {@@ -114,7 +110,7 @@ void LoadingScreen::Prepare(Loader::AppLoader& loader) {ui->logo->setPixmap(map);}- OnLoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 100);+ OnLoadProgress(VideoCore::LoadCallbackStage::Prepare, 0, 0);}void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size_t value,@@ -124,6 +120,11 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size// reset the timer if the stage changesif (stage != previous_stage) {ui->progress_bar->setStyleSheet(progressbar_style[stage]);+ if (stage == VideoCore::LoadCallbackStage::Prepare) {+ ui->progress_bar->hide();+ } else {+ ui->progress_bar->show();+ }previous_stage = stage;// reset back to fast shader compiling since the stage changedslow_shader_compile_start = false;