Skip to content

Commit

Permalink
Merge branch 'misc' into feature
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1t3cht committed Oct 29, 2024
2 parents e62f40f + b78088d commit d8c5416
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dialog_progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}

Expand Down

0 comments on commit d8c5416

Please sign in to comment.