FIX: load_ams_list for initial select machine

Change-Id: I87ffa52ffb207b850156866f03bb54eb9852ee42
This commit is contained in:
chunmao.guo 2023-02-22 13:20:18 +08:00 committed by Lane.Wei
parent bbc211d983
commit a48451df35
3 changed files with 6 additions and 1 deletions

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();
}