From 64a321528dd3334ff3aedc5a697c20444d02ae16 Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Mon, 13 Jul 2026 14:40:24 +0800 Subject: [PATCH] Fix issue that unable to open 3mf again once the 3mf action dialog is cancelled (#14715) --- src/slic3r/GUI/Plater.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 17015561ce..b7b8111f1e 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -12212,8 +12212,9 @@ void Plater::load_project(wxString const& filename2, BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << boost::format(": current loading other project, return directly"); return; } - else - m_loading_project = true; + + m_loading_project = true; + ScopeGuard loading_project_sc([this]() { m_loading_project = false; }); // Make sure state restored on any early return m_only_gcode = false; m_exported_file = false; @@ -12307,7 +12308,6 @@ void Plater::load_project(wxString const& filename2, sidebar().set_flushing_volume_warning(has_modify); BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << __LINE__ << " load project done"; - m_loading_project = false; } // BBS: save logic