mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: use response to support the message; update the panel if SD state changed
jira: [STUDIO-12552] Change-Id: I68048c6fa358253664adbf8fe637c6c0c95e1eb9 (cherry picked from commit 65bb25d80435c28bdaa1fe4445f7fc790f5de22f)
This commit is contained in:
@@ -335,12 +335,6 @@ void MonitorPanel::update_all()
|
||||
if (!dev) return;
|
||||
obj = dev->get_selected_machine();
|
||||
|
||||
m_status_info_panel->obj = obj;
|
||||
m_upgrade_panel->update(obj);
|
||||
m_status_info_panel->m_media_play_ctrl->SetMachineObject(obj);
|
||||
m_media_file_panel->SetMachineObject(obj);
|
||||
m_side_tools->update_status(obj);
|
||||
|
||||
if (!obj) {
|
||||
show_status((int)MONITOR_NO_PRINTER);
|
||||
m_hms_panel->clear_hms_tag();
|
||||
@@ -350,6 +344,9 @@ void MonitorPanel::update_all()
|
||||
}
|
||||
|
||||
if (obj->connection_type() != last_conn_type) { last_conn_type = obj->connection_type(); }
|
||||
|
||||
m_side_tools->update_status(obj);
|
||||
|
||||
if (obj->is_connecting()) {
|
||||
show_status(MONITOR_CONNECTING);
|
||||
return;
|
||||
@@ -367,9 +364,13 @@ void MonitorPanel::update_all()
|
||||
|
||||
show_status(MONITOR_NORMAL);
|
||||
|
||||
|
||||
if (m_status_info_panel->IsShown()) {
|
||||
auto current_page = m_tabpanel->GetCurrentPage();
|
||||
if (current_page == m_status_info_panel) {
|
||||
m_status_info_panel->update(obj);
|
||||
} else if (current_page == m_upgrade_panel) {
|
||||
m_upgrade_panel->update(obj);
|
||||
} else if (current_page == m_media_file_panel) {
|
||||
m_media_file_panel->UpdateByObj(obj);
|
||||
}
|
||||
|
||||
if (m_hms_panel->IsShown() || (obj->hms_list.size() != m_hms_panel->temp_hms_list.size())) {
|
||||
|
||||
Reference in New Issue
Block a user