From e146f07b88c17f1d3f2690bda6603c33080c750a Mon Sep 17 00:00:00 2001 From: tao wang Date: Wed, 26 Feb 2025 16:57:49 +0800 Subject: [PATCH] FIX:fixed disabling switch option in dark mode jira:[STUDIO-10545] Change-Id: I63a6ace601edc6a84dcf37ad1c241d9dc4a0b4d6 --- src/slic3r/GUI/SelectMachine.cpp | 2 +- src/slic3r/GUI/SelectMachine.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/SelectMachine.cpp b/src/slic3r/GUI/SelectMachine.cpp index 34a50e616..3092f5e9e 100644 --- a/src/slic3r/GUI/SelectMachine.cpp +++ b/src/slic3r/GUI/SelectMachine.cpp @@ -2372,7 +2372,7 @@ void SelectMachineDialog::EnableEditing(bool enable) /*options*/ for (auto iter : m_checkbox_list) { - iter.second->Enable(enable); + iter.second->enable(enable); } } diff --git a/src/slic3r/GUI/SelectMachine.hpp b/src/slic3r/GUI/SelectMachine.hpp index fb3e68eab..95a513c99 100644 --- a/src/slic3r/GUI/SelectMachine.hpp +++ b/src/slic3r/GUI/SelectMachine.hpp @@ -213,6 +213,7 @@ public: void render(wxDC &dc); void doRender(wxDC &dc); void msw_rescale() { m_printoption_item->msw_rescale(); }; + void enable(bool en){m_printoption_item->Enable(en);}; std::string m_param; std::vector m_ops;