Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_PresetComboBoxes.cpp
34610 views
--- src/slic3r/GUI/PresetComboBoxes.cpp.orig 2025-10-02 17:32:12 UTC1+++ src/slic3r/GUI/PresetComboBoxes.cpp2@@ -746,7 +746,7 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *p3{4// In a case of a physical printer, for its editing open PhysicalPrinterDialog5if (m_type == Preset::TYPE_PRINTER6-#ifdef __linux__7+#if defined(__linux__) || defined(__FreeBSD__)8// To edit extruder color from the sidebar9|| m_type == Preset::TYPE_FILAMENT10#endif //__linux__11@@ -755,7 +755,7 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *p12else13switch_to_tab();14});15-#ifdef __linux__16+#if defined(__linux__) || defined(__FreeBSD__)17edit_btn->Hide();18#endif //__linux__19}20@@ -914,7 +914,7 @@ void PlaterPresetComboBox::show_edit_menu()21append_menu_item(menu, wxID_ANY, _L("Edit preset"), "",22[this](wxCommandEvent&) { this->switch_to_tab(); }, "cog", menu, []() { return true; }, wxGetApp().plater());2324-#ifdef __linux__25+#if defined(__linux__) || defined(__FreeBSD__)26// To edit extruder color from the sidebar27if (m_type == Preset::TYPE_FILAMENT) {28append_menu_item(menu, wxID_ANY, _devL("Change extruder color"), "",293031