Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/OrcaSlicer/files/patch-src_slic3r_GUI_PresetComboBoxes.cpp
34610 views
1
--- src/slic3r/GUI/PresetComboBoxes.cpp.orig 2025-10-02 17:32:12 UTC
2
+++ src/slic3r/GUI/PresetComboBoxes.cpp
3
@@ -746,7 +746,7 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *p
4
{
5
// In a case of a physical printer, for its editing open PhysicalPrinterDialog
6
if (m_type == Preset::TYPE_PRINTER
7
-#ifdef __linux__
8
+#if defined(__linux__) || defined(__FreeBSD__)
9
// To edit extruder color from the sidebar
10
|| m_type == Preset::TYPE_FILAMENT
11
#endif //__linux__
12
@@ -755,7 +755,7 @@ PlaterPresetComboBox::PlaterPresetComboBox(wxWindow *p
13
else
14
switch_to_tab();
15
});
16
-#ifdef __linux__
17
+#if defined(__linux__) || defined(__FreeBSD__)
18
edit_btn->Hide();
19
#endif //__linux__
20
}
21
@@ -914,7 +914,7 @@ void PlaterPresetComboBox::show_edit_menu()
22
append_menu_item(menu, wxID_ANY, _L("Edit preset"), "",
23
[this](wxCommandEvent&) { this->switch_to_tab(); }, "cog", menu, []() { return true; }, wxGetApp().plater());
24
25
-#ifdef __linux__
26
+#if defined(__linux__) || defined(__FreeBSD__)
27
// To edit extruder color from the sidebar
28
if (m_type == Preset::TYPE_FILAMENT) {
29
append_menu_item(menu, wxID_ANY, _devL("Change extruder color"), "",
30
31