FIX: Force load ams list when click sync button
Change-Id: I579adc9586e0bca85c20be2784b7513361b38f7e Jira: none (cherry picked from commit 9c1afdc63c3b1f451d0c8e344eb476e490d1988d)
This commit is contained in:
parent
0aea1c0b4e
commit
75ed8d69fe
1 changed files with 5 additions and 0 deletions
|
@ -1751,6 +1751,11 @@ void Sidebar::load_ams_list(std::string const &device, MachineObject* obj)
|
|||
|
||||
void Sidebar::sync_ams_list()
|
||||
{
|
||||
// Force load ams list
|
||||
auto obj = wxGetApp().getDeviceManager()->get_selected_machine();
|
||||
if (obj)
|
||||
GUI::wxGetApp().sidebar().load_ams_list(obj->dev_id, obj);
|
||||
|
||||
auto & list = wxGetApp().preset_bundle->filament_ams_list;
|
||||
if (list.empty()) {
|
||||
MessageDialog dlg(this,
|
||||
|
|
Loading…
Reference in a new issue