ENH:add "is_filament_installed" in MachineObject

jira: none
Change-Id: Ifd71947a742c1ed37fa22bbf0bb2cd538ff47268
(cherry picked from commit 21d1159cd54259fb53c005bbc1cb66b6b3b40c97)
This commit is contained in:
zhou.xu
2025-02-11 17:05:21 +08:00
committed by Noisyfox
parent 860ea61420
commit f3bf34ed0c
3 changed files with 24 additions and 1 deletions

View File

@@ -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;