Skip to content

Commit

Permalink
Revert "Change progress bar to just show busy status"
Browse files Browse the repository at this point in the history
This reverts commit 3de88a8.
  • Loading branch information
AdrianTM committed Jan 23, 2024
1 parent 3de88a8 commit 0b144f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ QString MainWindow::getArchOption() const
void MainWindow::updateBar()
{
QApplication::processEvents();
bar->setValue((bar->value() + 1) % bar->maximum() + 1);
}

void MainWindow::checkUnckeckItem()
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 0b144f3

Please sign in to comment.