mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX:modify warning code location
jira: STUDIO-10333 Change-Id: Ifd429d04c35e85148f7b649c514b3aaa235ee5d6 (cherry picked from commit f5534db6b845884463030e89918fcf96d8952c19)
This commit is contained in:
@@ -2799,10 +2799,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;
|
||||
@@ -2814,6 +2810,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user