diff --git a/src/slic3r/GUI/GUI_Utils.hpp b/src/slic3r/GUI/GUI_Utils.hpp index c86f43faa..147f51970 100644 --- a/src/slic3r/GUI/GUI_Utils.hpp +++ b/src/slic3r/GUI/GUI_Utils.hpp @@ -189,9 +189,12 @@ public: this->Bind(wxEVT_SYS_COLOUR_CHANGED, [this](wxSysColourChangedEvent& event) { - update_dark_config(); - on_sys_color_changed(); - event.Skip(); +#ifndef __WINDOWS__ + update_dark_config(); + on_sys_color_changed(); + event.Skip(); +#endif // __WINDOWS__ + }); if (std::is_same::value) {