Sfoglia il codice sorgente

Fix: src/MainWindow.cpp

Satoshi Yoneda 2 settimane fa
parent
commit
3e94735a73
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      src/MainWindow.cpp

+ 3 - 1
src/MainWindow.cpp

@@ -537,8 +537,10 @@ void MainWindow::performAsyncSearch() {
     m_lastScannedImages = getFilteredImages();
   }
 
-  if (m_lastScannedImages.empty())
+  if (m_lastScannedImages.empty()) {
+    m_progressBar->setVisible(false);
     return;
+  }
 
   m_progressBar->setVisible(true);
   m_progressBar->setRange(0, 0);