Fix: Snapmaker TPU 95a hf procession & region error on first use

This commit is contained in:
xiaoyeliu
2026-02-09 12:30:12 +08:00
parent 85d9ea4541
commit 706508c792
4 changed files with 10 additions and 3 deletions

View File

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

View File

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

View File

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

View File

@@ -496,7 +496,7 @@ void GuideFrame::OnScriptMessage(wxWebViewEvent &evt)
}
}
wxGetApp().fltviews().relead_all();
wxGetApp().fltviews().reload_all();
}
this->EndModal(wxID_OK);