From e261f8b722f3dd1ad6e8cf3c22239e51779b96c6 Mon Sep 17 00:00:00 2001 From: tao wang Date: Mon, 29 May 2023 11:27:13 +0800 Subject: [PATCH] FIX:fixed display disorder in dark mode after account switching Change-Id: Ie756a2d303bda7258cf7648a8887108babaf2127 --- src/slic3r/GUI/GUI_Utils.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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) {