FIX: load_ams_list for initial select machine

Change-Id: I87ffa52ffb207b850156866f03bb54eb9852ee42
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2023-02-24 17:44:15 +08:00
1 parent bbc211d983
commit a48451df35
3 files changed
+6 -1

No files matched your search

+3
View File
@@ -478,6 +478,9 @@ bool MonitorPanel::Show(bool show)
obj = dev->get_selected_machine();
if (obj == nullptr) {
dev->load_last_machine();
obj = dev->get_selected_machine();
if (obj)
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj->amsList);
} else {
obj->reset_update_time();
}