FIX: fix the hang issue after change language under macos

Change-Id: I9286173303225330b3052d8b7a5119b046c44754
This commit is contained in:
gerrit 2022-07-23 22:41:50 +08:00 committed by Lane.Wei
parent 5527ebb5e3
commit ba83769030
1 changed files with 5 additions and 1 deletions

View File

@ -2523,7 +2523,7 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
dlg.Update(80, _L("Loading current presets") + dots); dlg.Update(80, _L("Loading current presets") + dots);
load_current_presets(); load_current_presets();
mainframe->Show(true); mainframe->Show(true);
mainframe->refresh_plugin_tips(); //mainframe->refresh_plugin_tips();
dlg.Update(90, _L("Loading a mode view") + dots); dlg.Update(90, _L("Loading a mode view") + dots);
@ -2540,6 +2540,10 @@ void GUI_App::recreate_GUI(const wxString& msg_name)
// }); // });
m_is_recreating_gui = false; m_is_recreating_gui = false;
CallAfter([this]() {
mainframe->refresh_plugin_tips();
});
} }
void GUI_App::system_info() void GUI_App::system_info()