diff --git a/src/dialog_progress.cpp b/src/dialog_progress.cpp index 85939e7b8..7c669f89c 100644 --- a/src/dialog_progress.cpp +++ b/src/dialog_progress.cpp @@ -81,14 +81,16 @@ class DialogProgressSink final : public agi::ProgressSink { DialogProgressSink(DialogProgress *dialog) : dialog(dialog) { } void SetTitle(std::string const& title) override { - Main().Async([=]{ dialog->title->SetLabelText(to_wx(title)); dialog->Layout(); }); + Main().Async([=]{ dialog->title->SetLabelText(to_wx(title)); }); } void SetMessage(std::string const& msg) override { Main().Async([=]{ dialog->text->SetLabelText(to_wx(msg)); dialog->text->Wrap(dialog->GetMinWidth()); + dialog->text->CenterOnParent(); dialog->Fit(); + dialog->Layout(); }); }