FIX:modify warning code location
jira: STUDIO-10333 Change-Id: Ifd429d04c35e85148f7b649c514b3aaa235ee5d6
This commit is contained in:
parent
1eb7b02b06
commit
f5534db6b8
|
@ -2927,10 +2927,6 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
|
|||
p->plater->pop_warning_and_go_to_device_page(printer_name, Plater::PrinterWarningType::NOT_CONNECTED, _L("Sync printer information"));
|
||||
return;
|
||||
}
|
||||
if (!obj->is_filament_installed()) {
|
||||
p->plater->pop_warning_and_go_to_device_page("", Plater::PrinterWarningType::UNINSTALL_FILAMENT, _L("Sync printer information"));
|
||||
return;
|
||||
}
|
||||
bool exist_at_list_one_filament =false;
|
||||
for (auto &cur : list) {
|
||||
auto temp_config = cur.second;
|
||||
|
@ -2942,6 +2938,10 @@ void Sidebar::sync_ams_list(bool is_from_big_sync_btn)
|
|||
}
|
||||
}
|
||||
if (!exist_at_list_one_filament) {
|
||||
if (!obj->is_filament_installed()) {
|
||||
p->plater->pop_warning_and_go_to_device_page("", Plater::PrinterWarningType::UNINSTALL_FILAMENT, _L("Sync printer information"));
|
||||
return;
|
||||
}
|
||||
p->plater->pop_warning_and_go_to_device_page("", Plater::PrinterWarningType::EMPTY_FILAMENT, _L("Sync printer information"));
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue