From f5534db6b845884463030e89918fcf96d8952c19 Mon Sep 17 00:00:00 2001 From: "zhou.xu" Date: Wed, 12 Feb 2025 16:12:45 +0800 Subject: [PATCH] FIX:modify warning code location jira: STUDIO-10333 Change-Id: Ifd429d04c35e85148f7b649c514b3aaa235ee5d6 --- src/slic3r/GUI/Plater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index a8bfb5b8c..509b38960 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -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; }