Fix issue that unable to open 3mf again once the 3mf action dialog is cancelled (#14715)

This commit is contained in:
Noisyfox
2026-07-13 14:40:24 +08:00
committed by GitHub
parent 6a254c35d4
commit 64a321528d

View File

@@ -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