mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-21 01:42:09 +00:00
ENH:add "is_filament_installed" in MachineObject
jira: none Change-Id: Ifd71947a742c1ed37fa22bbf0bb2cd538ff47268 (cherry picked from commit 21d1159cd54259fb53c005bbc1cb66b6b3b40c97)
This commit is contained in:
@@ -2784,6 +2784,10 @@ 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;
|
||||
|
||||
Reference in New Issue
Block a user