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:
parent
87002fb8f8
commit
68facd6b93
@ -81,6 +81,7 @@ int ProgressDialog::execWithTask(Task* task)
|
||||
connect(task, &Task::progress, this, &ProgressDialog::changeProgress);
|
||||
|
||||
connect(task, &Task::aborted, [this] { QDialog::reject(); });
|
||||
connect(task, &Task::abortStatusChanged, ui->skipButton, &QPushButton::setEnabled);
|
||||
|
||||
m_is_multi_step = task->isMultiStep();
|
||||
if (!m_is_multi_step) {
|
||||
|
Loading…
Reference in New Issue
Block a user