From 79247917f573d391bee01a344540abb7f505b77e Mon Sep 17 00:00:00 2001 From: "xin.zhang" Date: Fri, 3 Jan 2025 09:54:12 +0800 Subject: [PATCH] FIX: do not show refill if there is one tray jira: none Change-Id: I2623ca6d565716a9d3950af21175f4799800b956 (cherry picked from commit 920736cf4e5b561f95738f4614b243c61b54b488) --- src/slic3r/GUI/AmsMappingPopup.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/AmsMappingPopup.cpp b/src/slic3r/GUI/AmsMappingPopup.cpp index f89c2061380..6640861f6c8 100644 --- a/src/slic3r/GUI/AmsMappingPopup.cpp +++ b/src/slic3r/GUI/AmsMappingPopup.cpp @@ -1681,6 +1681,11 @@ void AmsReplaceMaterialDialog::update_to_nozzle(int nozzle_id) } } + if (group_info.size() < 2) /* do not show refill if there is one tray*/ + { + continue; + } + if (is_in_tray || m_tray_used.size() <= 0) { m_groups_sizer->Add(create_backup_group(wxString::Format("%s%d", _L("Group"), group_index + 1), group_info, group_material), 0, wxALL, FromDIP(10));