mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX:confirm data validity before loading AMS
jira:[STUDIO-9577] Change-Id: Id0e9d3eef5527f45f25c5b9e8c8fc6e1d109fe29 (cherry picked from commit 0ef08bc6289d8476d9adcbb5569a3ed38ff2df87)
This commit is contained in:
@@ -455,7 +455,7 @@ bool MonitorPanel::Show(bool show)
|
|||||||
if (obj == nullptr) {
|
if (obj == nullptr) {
|
||||||
dev->load_last_machine();
|
dev->load_last_machine();
|
||||||
obj = dev->get_selected_machine();
|
obj = dev->get_selected_machine();
|
||||||
if (obj)
|
if (obj && obj->is_info_ready(false))
|
||||||
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||||
} else {
|
} else {
|
||||||
obj->reset_update_time();
|
obj->reset_update_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user