mirror of https://github.com/odrling/Aegisub
Process any pending log text when a progress dialog completes
This commit is contained in:
parent
e5f935678e
commit
e3fa270345
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue