FIX: the printer name not display

jira: [STUDIO-12821]
Change-Id: I8e99f3c09446fcdc542b61479bbcbd38fb77aaf2
(cherry picked from commit bd1d5dcce03b4de1229926f54816a6bcf953a2f2)
This commit is contained in:
xin.zhang
2025-06-25 16:31:51 +08:00
committed by Noisyfox
parent 88eae5d217
commit dcf3505bb4
3 changed files with 2 additions and 20 deletions

View File

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