FIX:fixed display disorder in dark mode after account switching

Change-Id: Ie756a2d303bda7258cf7648a8887108babaf2127
This commit is contained in:
tao wang authored and Lane.Wei committed 2023-07-07 17:25:51 +08:00
1 parent fa71bcccdc
commit e261f8b722
1 file changed
+6 -3
+6 -3
View File
@@ -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<wxDialog, P>::value) {