Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-01-27 16:58:11 +0300
committerYuSanka <yusanka@gmail.com>2020-01-27 16:58:11 +0300
commitcf7d7bd40f5a93c41e00474252d72bccbdf48872 (patch)
tree5e0684c07c9e4548d955907caf8674f1b12510e6
parentd8b1d074a13bfbabfc76fb4b6da695a3a9df6721 (diff)
Fixed menu icons scaling under OSX
-rw-r--r--src/slic3r/GUI/DoubleSlider.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/GUI/DoubleSlider.cpp b/src/slic3r/GUI/DoubleSlider.cpp
index ebc4c12cb..47bdec1fb 100644
--- a/src/slic3r/GUI/DoubleSlider.cpp
+++ b/src/slic3r/GUI/DoubleSlider.cpp
@@ -1381,7 +1381,7 @@ void Control::OnRightUp(wxMouseEvent& event)
append_menu_item(&menu, wxID_ANY, it->gcode == ColorChangeCode ? _(L("Edit color")) :
it->gcode == PausePrintCode ? _(L("Edit pause print message")) :
_(L("Edit custom G-code")), "",
- [this](wxCommandEvent&) { edit_tick(); }, "edit_uni", &menu);
+ [this](wxCommandEvent&) { edit_tick(); }, "edit_uni", &menu, []() {return true; }, this);
if (it->gcode == ColorChangeCode && m_mode == t_mode::MultiAsSingle)
append_change_extruder_menu_item(&menu, true);
@@ -1390,7 +1390,7 @@ void Control::OnRightUp(wxMouseEvent& event)
it->gcode == ToolChangeCode ? _(L("Delete tool change")) :
it->gcode == PausePrintCode ? _(L("Delete pause print")) :
_(L("Delete custom G-code")), "",
- [this](wxCommandEvent&) { delete_current_tick();}, "colorchange_del_f", &menu);
+ [this](wxCommandEvent&) { delete_current_tick();}, "colorchange_del_f", &menu, []() {return true; }, this);
GUI::wxGetApp().plater()->PopupMenu(&menu);