FIX: [STUDIO-2241] show error dialog later for param value error

Change-Id: I16ffc92cb0701b8e3d984b783618549a5b237f70
This commit is contained in:
chunmao.guo 2023-03-07 10:50:17 +08:00 committed by Lane.Wei
parent d352677f08
commit cc994a3492

View file

@ -221,8 +221,10 @@ void change_opt_value(DynamicPrintConfig& config, const t_config_option_key& opt
void show_error(wxWindow* parent, const wxString& message, bool monospaced_font)
{
ErrorDialog msg(parent, message, monospaced_font);
msg.ShowModal();
wxGetApp().CallAfter([=] {
ErrorDialog msg(parent, message, monospaced_font);
msg.ShowModal();
});
}
void show_error(wxWindow* parent, const char* message, bool monospaced_font)