diff --git a/src/slic3r/GUI/Monitor.cpp b/src/slic3r/GUI/Monitor.cpp index 35b790f917..f9d2e0c404 100644 --- a/src/slic3r/GUI/Monitor.cpp +++ b/src/slic3r/GUI/Monitor.cpp @@ -440,23 +440,6 @@ bool MonitorPanel::Show(bool show) return wxPanel::Show(show); } -void MonitorPanel::update_side_panel() -{ - Slic3r::DeviceManager *dev = Slic3r::GUI::wxGetApp().getDeviceManager(); - if (!dev) return; - - auto is_next_machine = false; - if (!dev->get_first_online_user_machine().empty()) { - wxCommandEvent* event = new wxCommandEvent(wxEVT_COMMAND_CHOICE_SELECTED); - event->SetString(dev->get_first_online_user_machine()); - wxQueueEvent(this, event); - is_next_machine = true; - return; - } - - if (!is_next_machine) { m_side_tools->set_none_printer_mode(); } -} - void MonitorPanel::show_status(int status) { if (!m_initialized) return; diff --git a/src/slic3r/GUI/Monitor.hpp b/src/slic3r/GUI/Monitor.hpp index 9b3b391cc5..7d2846f227 100644 --- a/src/slic3r/GUI/Monitor.hpp +++ b/src/slic3r/GUI/Monitor.hpp @@ -144,7 +144,6 @@ public: void update_hms_tag(); bool Show(bool show); - void update_side_panel(); void show_status(int status); std::string get_string_from_tab(PrinterTab tab); diff --git a/src/slic3r/GUI/Widgets/SideTools.cpp b/src/slic3r/GUI/Widgets/SideTools.cpp index 99da9f76c0..d731ed49cd 100644 --- a/src/slic3r/GUI/Widgets/SideTools.cpp +++ b/src/slic3r/GUI/Widgets/SideTools.cpp @@ -57,7 +57,7 @@ void SideToolsPanel::on_timer(wxTimerEvent &event) void SideToolsPanel::set_current_printer_name(std::string dev_name) { - if (m_dev_name == from_u8(dev_name)) return; + if (m_dev_name == from_u8(dev_name) && !m_none_printer) return; m_none_printer = false; m_dev_name = from_u8(dev_name); @@ -66,7 +66,7 @@ void SideToolsPanel::set_current_printer_name(std::string dev_name) void SideToolsPanel::set_current_printer_signal(WifiSignal sign) { - if (last_printer_signal == sign) return; + if (last_printer_signal == sign && !m_none_printer) return; last_printer_signal = sign; m_none_printer = false;