Merge branch 'misc' into feature

This commit is contained in:
arch1t3cht 2024-10-29 15:41:00 +01:00
commit d8c5416bf7
1 changed files with 3 additions and 1 deletions

View File

@ -81,14 +81,16 @@ public:
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();
});
}