diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 082eb12b6a..8a1d317b97 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -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