From 4861fc7e6b14eba78086d128a3f6efb70e2ce2cc Mon Sep 17 00:00:00 2001 From: Noisyfox Date: Thu, 1 May 2025 10:58:19 +0800 Subject: [PATCH] Update delete filament btn (cherry picked from commit 6becf796e0e4d8e6f92d4226ba26cb84023e9c72) --- src/slic3r/GUI/Plater.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 77c6b3fc82..70f70871c7 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -1836,10 +1836,13 @@ void Sidebar::on_filaments_delete(size_t filament_id) auto sizer = p->m_panel_filament_title->GetSizer(); if (p->m_flushing_volume_btn != nullptr && sizer != nullptr) { - if (p->combos_filament.size() > 1) + if (p->combos_filament.size() > 1) { sizer->Show(p->m_flushing_volume_btn); - else + sizer->Show(p->m_bpButton_del_filament); // ORCA: Show delete filament button if multiple filaments + } else { sizer->Hide(p->m_flushing_volume_btn); + sizer->Hide(p->m_bpButton_del_filament); // ORCA: Hide delete filament button if there is only one filament + } } for (PlaterPresetComboBox *filament_combo : p->combos_filament) {