소스 검색

Merge pull request #8622 from liamwhite/progress

qt: reset progress bar after shader compilation
bunnei 4 년 전
부모
커밋
3bbc1cf64c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/yuzu/loading_screen.cpp

+ 4 - 0
src/yuzu/loading_screen.cpp

@@ -147,6 +147,10 @@ void LoadingScreen::OnLoadProgress(VideoCore::LoadCallbackStage stage, std::size
         ui->progress_bar->setMaximum(static_cast<int>(total));
         previous_total = total;
     }
+    // Reset the progress bar ranges if compilation is done
+    if (stage == VideoCore::LoadCallbackStage::Complete) {
+        ui->progress_bar->setRange(0, 0);
+    }
 
     QString estimate;
     // If theres a drastic slowdown in the rate, then display an estimate