FIX: reset bambu lib after restart network plugin

Change-Id: I4a3a4b7420745835ca3fa00c6edebe9d8d98cbf6
Jira: STUDIO-7571
(cherry picked from commit 28d9c6743fae80bfd40e4ee391e30d62cb16d4ab)
This commit is contained in:
chunmao.guo authored and Noisyfox committed 2025-09-07 23:19:41 +08:00
1 parent ac3ead14d2
commit f2022f431b
2 files changed
+33 -13

No files matched your search

+6
View File
@@ -154,6 +154,11 @@ typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS2)(
using namespace std::literals;
namespace pt = boost::property_tree;
struct StaticBambuLib
{
static void reset();
};
namespace Slic3r {
namespace GUI {
@@ -1512,6 +1517,7 @@ void GUI_App::restart_networking()
{
BOOST_LOG_TRIVIAL(info) << __FUNCTION__<< boost::format(" enter, mainframe %1%")%mainframe;
on_init_network(true);
StaticBambuLib::reset();
if(m_agent) {
init_networking_callbacks();
m_agent->set_on_ssdp_msg_fn(