fix(ui): hook up abort status signal in ProgressDialog

Now we have a visual indication on when tasks are abortable!

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-07-31 18:28:56 -03:00
parent 87002fb8f8
commit 68facd6b93
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -81,6 +81,7 @@ int ProgressDialog::execWithTask(Task* task)
connect(task, &Task::progress, this, &ProgressDialog::changeProgress); connect(task, &Task::progress, this, &ProgressDialog::changeProgress);
connect(task, &Task::aborted, [this] { QDialog::reject(); }); connect(task, &Task::aborted, [this] { QDialog::reject(); });
connect(task, &Task::abortStatusChanged, ui->skipButton, &QPushButton::setEnabled);
m_is_multi_step = task->isMultiStep(); m_is_multi_step = task->isMultiStep();
if (!m_is_multi_step) { if (!m_is_multi_step) {