Skip to content
Extraits de code Groupes Projets
Valider debc0868 rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Force the final progress of operations to 100%

parent 5c91a2e3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
// close button
bool cancelled = this->ps->IsCancelled();
if (cancelled || (log_output->IsEmpty() && !pending_log))
if (cancelled || (log_output->IsEmpty() && !pending_log)) {
set_taskbar_progress(0);
EndModal(!cancelled);
else
}
else {
cancel_button->SetLabelText(_("Close"));
set_taskbar_progress(0);
SetProgress(300);
}
});
});
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter