From 706508c79218f3ef4d61cde9573b274aba654409 Mon Sep 17 00:00:00 2001 From: xiaoyeliu Date: Mon, 9 Feb 2026 12:30:12 +0800 Subject: [PATCH] Fix: Snapmaker TPU 95a hf procession & region error on first use --- src/slic3r/GUI/GUI_App.cpp | 3 +++ src/slic3r/GUI/GUI_App.hpp | 2 +- src/slic3r/GUI/SSWCP.cpp | 6 +++++- src/slic3r/GUI/WebGuideDialog.cpp | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/slic3r/GUI/GUI_App.cpp b/src/slic3r/GUI/GUI_App.cpp index 2452214ce7..c4167f7324 100644 --- a/src/slic3r/GUI/GUI_App.cpp +++ b/src/slic3r/GUI/GUI_App.cpp @@ -3658,6 +3658,8 @@ if (res) { load_current_presets(); update_publish_status(); mainframe->refresh_plugin_tips(); + + m_fltviews.reload_all(); // BBS: remove SLA related message } } catch (std::exception &) { @@ -6727,6 +6729,7 @@ bool GUI_App::run_wizard(ConfigWizard::RunReason reason, ConfigWizard::StartPage wxGetApp().sidebar().update_nozzle_settings(); update_publish_status(); mainframe->refresh_plugin_tips(); + m_fltviews.reload_all(); // BBS: remove SLA related message } auto isAgree = wxGetApp().app_config->get("app", PRIVACY_POLICY_FLAGS); diff --git a/src/slic3r/GUI/GUI_App.hpp b/src/slic3r/GUI/GUI_App.hpp index 38a950676a..abac76954d 100644 --- a/src/slic3r/GUI/GUI_App.hpp +++ b/src/slic3r/GUI/GUI_App.hpp @@ -903,7 +903,7 @@ public: } } - void relead_all() { + void reload_all() { for (const auto& view : webviews) { auto ptr = view.first; wxString new_url = app->get_international_url(view.second); diff --git a/src/slic3r/GUI/SSWCP.cpp b/src/slic3r/GUI/SSWCP.cpp index 33de5066f0..a55c0712f8 100644 --- a/src/slic3r/GUI/SSWCP.cpp +++ b/src/slic3r/GUI/SSWCP.cpp @@ -1523,7 +1523,11 @@ void SSWCP_Instance::update_filament_info(const json& objects, bool send_message // 名称特殊处理 if (type == "TPU") { - name = vendor + " " + type; + if (sub_type == "95A HF") { + name = vendor + " " + type + ((sub_type != "NONE" && sub_type != "") ? " " + sub_type : ""); + } else { + name = vendor + " " + type; + } } else if (sub_type == "Support") { name = vendor + " Support" + " For " + type; } else { diff --git a/src/slic3r/GUI/WebGuideDialog.cpp b/src/slic3r/GUI/WebGuideDialog.cpp index 5c405af516..9a67906dba 100644 --- a/src/slic3r/GUI/WebGuideDialog.cpp +++ b/src/slic3r/GUI/WebGuideDialog.cpp @@ -496,7 +496,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt) } } - wxGetApp().fltviews().relead_all(); + wxGetApp().fltviews().reload_all(); } this->EndModal(wxID_OK);