mirror of https://github.com/odrling/Aegisub
Merge branch 'misc' into feature
This commit is contained in:
commit
d8c5416bf7
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue