From f1f6758411f2a13500333fb5fb4c7dc823b5ba3b Mon Sep 17 00:00:00 2001 From: "weiting.ji" Date: Thu, 28 Aug 2025 17:50:58 +0800 Subject: [PATCH] FIX: mac printer & filament guideframe crash Jira: STUDIO-14240 STUDIO-14238 Change-Id: Iaec55a36b09ee0c501c374efc985e369b54ba555 (cherry picked from commit 1de29784003d25bd962dff9b3da770edab444da6) --- src/slic3r/GUI/GUI_App.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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)