From 20754415a627f5319d9279eab7ed03ec512bd046 Mon Sep 17 00:00:00 2001 From: "haolin.tian" Date: Mon, 11 Aug 2025 11:19:56 +0800 Subject: [PATCH] FIX: hide mqtt source in public version jira: [STUDIO-13803] Change-Id: I1cf256e1b1b4ffd7f6cd5c2b33042502d4f58e0b (cherry picked from commit 75d32fe7a71ac4289ee9f21a52c3f26fd27f89b4) --- src/slic3r/GUI/StatusPanel.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/StatusPanel.cpp b/src/slic3r/GUI/StatusPanel.cpp index b522a44e9b..fcbb9d15bc 100644 --- a/src/slic3r/GUI/StatusPanel.cpp +++ b/src/slic3r/GUI/StatusPanel.cpp @@ -1371,8 +1371,9 @@ wxBoxSizer *StatusBasePanel::create_monitoring_page() m_staticText_timelapse->Hide(); bSizer_monitoring_title->Add(m_staticText_timelapse, 0, wxALIGN_CENTER_VERTICAL | wxALL, FromDIP(5)); - m_mqtt_source = new wxStaticText(m_panel_monitoring_title, wxID_ANY, _L("MqttSource"), wxDefaultPosition, wxDefaultSize, 0); + m_mqtt_source = new wxStaticText(m_panel_monitoring_title, wxID_ANY, "MqttSource", wxDefaultPosition, wxDefaultSize, 0); m_mqtt_source->Wrap(-1); + m_mqtt_source->Hide(); bSizer_monitoring_title->Add(m_mqtt_source, 0, wxALIGN_CENTER_VERTICAL | wxALL, FromDIP(5)); m_bmToggleBtn_timelapse = new SwitchButton(m_panel_monitoring_title); @@ -2647,10 +2648,13 @@ void StatusPanel::update(MachineObject *obj) m_bmToggleBtn_timelapse->SetValue(obj->is_tunnel_mqtt); #endif +#if !BBL_RELEASE_TO_PUBLIC if (obj->HasRecentCloudMessage() && obj->HasRecentLanMessage()) m_mqtt_source->SetLabel("Cloud+Lan"); else if (obj->HasRecentCloudMessage()) m_mqtt_source->SetLabel("Cloud"); else if (obj->HasRecentLanMessage()) m_mqtt_source->SetLabel("Lan"); else m_mqtt_source->SetLabel("None"); + m_mqtt_source->Show(); +#endif //m_machine_ctrl_panel->Freeze(); if (obj->is_in_printing() && !obj->can_resume()) {