mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Update delete filament btn
(cherry picked from commit 6becf796e0e4d8e6f92d4226ba26cb84023e9c72)
This commit is contained in:
@@ -1836,10 +1836,13 @@ void Sidebar::on_filaments_delete(size_t filament_id)
|
|||||||
|
|
||||||
auto sizer = p->m_panel_filament_title->GetSizer();
|
auto sizer = p->m_panel_filament_title->GetSizer();
|
||||||
if (p->m_flushing_volume_btn != nullptr && sizer != nullptr) {
|
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);
|
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_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) {
|
for (PlaterPresetComboBox *filament_combo : p->combos_filament) {
|
||||||
|
|||||||
Reference in New Issue
Block a user