Force the final progress of operations to 100%. Closes #1728.
This commit is contained in:
parent
f07a2559b8
commit
4a46f09d31
1 changed files with 6 additions and 3 deletions
|
@ -170,11 +170,14 @@ void DialogProgress::Run(std::function<void(agi::ProgressSink*)> task, int prior
|
||||||
// so the user can read the debug output and switch the cancel button to a
|
// so the user can read the debug output and switch the cancel button to a
|
||||||
// close button
|
// close button
|
||||||
bool cancelled = this->ps->IsCancelled();
|
bool cancelled = this->ps->IsCancelled();
|
||||||
if (cancelled || (log_output->IsEmpty() && !pending_log))
|
if (cancelled || (log_output->IsEmpty() && !pending_log)) {
|
||||||
EndModal(!cancelled);
|
|
||||||
else
|
|
||||||
cancel_button->SetLabelText(_("Close"));
|
|
||||||
set_taskbar_progress(0);
|
set_taskbar_progress(0);
|
||||||
|
EndModal(!cancelled);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
cancel_button->SetLabelText(_("Close"));
|
||||||
|
SetProgress(300);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue