diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index ded12d9361..c3c2ef4d65 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -6818,6 +6818,21 @@ bool GUI_App::run_wizard(ConfigWizard::RunReason reason, ConfigWizard::StartPage { wxCHECK_MSG(mainframe != nullptr, false, "Internal error: Main frame not created / null"); +#ifdef __APPLE__ + if (is_adding_script_handler()) { + BOOST_LOG_TRIVIAL(info) << "run_wizard: Script handler is being added, delaying wizard creation"; + auto timer = new wxTimer(); + timer->Bind(wxEVT_TIMER, [this, reason, start_page, timer](wxTimerEvent &) { + timer->Stop(); + run_wizard(reason, start_page); + delete timer; + }); + timer->StartOnce(200); + + return true; + } +#endif + //if (reason == ConfigWizard::RR_USER) { // //TODO: turn off it currently, maybe need to turn on in the future // if (preset_updater->config_update(app_config->orig_version(), PresetUpdater::UpdateParams::FORCED_BEFORE_WIZARD) == PresetUpdater::R_ALL_CANCELED)