fix: temporary wxstring going out of scope causing crash on linux (#13925)

This commit is contained in:
Ian Chua
2026-05-29 15:49:36 +08:00
committed by GitHub
parent f3de971914
commit 00ead43e5a

View File

@@ -2981,7 +2981,11 @@ bool GUI_App::on_init_inner()
}
#endif
if (scrn) { scrn->SetText(_L("Creating main window") + dots); wxYield(); }
if (scrn) {
const auto scrn_txt = _L("Creating main window") + dots;
scrn->SetText(scrn_txt);
wxYield();
}
BOOST_LOG_TRIVIAL(info) << "create the main window";
mainframe = new MainFrame();
// hide settings tabs after first Layout