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>2021-09-22 13:39:19 +0300
committerYuSanka <yusanka@gmail.com>2021-09-22 13:39:19 +0300
commit846b868215e1a35778c52ce8836346da977d592d (patch)
tree0884468d8e7aada5e1eeec729e40d05b7ffcb6ae /src/slic3r
parentd57d3f99d0874c09700e1a4b780caa14fe788d6e (diff)
Follow up ff82c82f - Fixed ModeButtons refreshing
Diffstat (limited to 'src/slic3r')
-rw-r--r--src/slic3r/GUI/wxExtensions.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/slic3r/GUI/wxExtensions.cpp b/src/slic3r/GUI/wxExtensions.cpp
index a3d6384e0..5e703a37b 100644
--- a/src/slic3r/GUI/wxExtensions.cpp
+++ b/src/slic3r/GUI/wxExtensions.cpp
@@ -672,10 +672,9 @@ void ModeButton::focus_button(const bool focus)
Slic3r::GUI::wxGetApp().normal_font();
SetFont(new_font);
-//#ifdef _WIN32
-// GetParent()->Refresh();
-//#else
-#ifndef _WIN32
+#ifdef _WIN32
+ GetParent()->Refresh(); // force redraw a background of the selected mode button
+#else
SetForegroundColour(wxSystemSettings::GetColour(focus ? wxSYS_COLOUR_BTNTEXT :
#if defined (__linux__) && defined (__WXGTK3__)
wxSYS_COLOUR_GRAYTEXT