Process any pending log text when a progress dialog completes

This commit is contained in:
Thomas Goyne 2014-04-28 11:01:57 -07:00
parent e5f935678e
commit e3fa270345
1 changed files with 4 additions and 0 deletions

View File

@ -171,6 +171,10 @@ void DialogProgress::Run(std::function<void(agi::ProgressSink*)> task, int prior
if (cancelled || (log_output->IsEmpty() && !pending_log)) if (cancelled || (log_output->IsEmpty() && !pending_log))
EndModal(!cancelled); EndModal(!cancelled);
else { else {
if (!pending_log.empty()) {
wxIdleEvent evt;
OnIdle(evt);
}
cancel_button->SetLabelText(_("Close")); cancel_button->SetLabelText(_("Close"));
gauge->SetValue(300); gauge->SetValue(300);
} }