feat: some may not want the loading screen

This commit is contained in:
2025-08-07 22:08:22 +02:00
parent 8a8d967a58
commit 94fb258f2f
6 changed files with 27 additions and 15 deletions
+4 -1
View File
@@ -1,7 +1,7 @@
/*
* @Author: Uyanide pywang0608@foxmail.com
* @Date: 2025-08-05 00:37:58
* @LastEditTime: 2025-08-07 01:08:55
* @LastEditTime: 2025-08-07 22:03:58
* @Description: MainWindow implementation.
*/
#include "main_window.h"
@@ -140,6 +140,9 @@ void MainWindow::_onImageFocused(const QString &path, const int index, const int
}
void MainWindow::_onLoadingStarted(const qsizetype amount) {
if (m_config.isStyleNoLoadingScreen()) {
return;
}
m_loadingIndicator->setMaximum(amount);
ui->stackedWidget->setCurrentIndex(m_loadingIndicatorIndex);
}