From 0b144f313058d38d6dda3bd1876f01b85b55c1a2 Mon Sep 17 00:00:00 2001 From: Adrian Date: Mon, 22 Jan 2024 23:05:56 -0500 Subject: [PATCH] Revert "Change progress bar to just show busy status" This reverts commit 3de88a8233d02e9df94109df462c1bbb8c2831fb. --- debian/rules | 2 +- mainwindow.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 1ef54196..ca8a07a5 100755 --- a/debian/rules +++ b/debian/rules @@ -20,7 +20,7 @@ override_dh_shlibdeps: dh_shlibdeps -- -xvirtualbox-guest-x11 --ignore-missing-info %: - dh $@ --no-automatic-dbgsym --parallel + dh $@ --no-automatic-dbgsym --parallel override_dh_auto_install: dh_auto_install diff --git a/mainwindow.cpp b/mainwindow.cpp index 6522bfcd..66e6d585 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -451,6 +451,7 @@ QString MainWindow::getArchOption() const void MainWindow::updateBar() { QApplication::processEvents(); + bar->setValue((bar->value() + 1) % bar->maximum() + 1); } void MainWindow::checkUnckeckItem() @@ -622,7 +623,7 @@ void MainWindow::setProgressDialog() qDebug() << "+++" << __PRETTY_FUNCTION__ << "+++"; progress = new QProgressDialog(this); bar = new QProgressBar(progress); - bar->setRange(0, 0); + bar->setMaximum(bar->maximum()); pushCancel = new QPushButton(tr("Cancel")); connect(pushCancel, &QPushButton::clicked, this, &MainWindow::cancelDownload); progress->setWindowModality(Qt::WindowModal);