Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-09-04 10:24:44 +0300
committerYuSanka <yusanka@gmail.com>2019-09-04 10:24:44 +0300
commitdb2319cb5cfb9a7128346af3b7b70155797678b6 (patch)
treea4fe520f89b10c95ac300a9c142caf22063e1c40 /src/slic3r/GUI/GUI_ObjectManipulation.cpp
parent6b95c579af9f6e20bd449c52c9e55646e0c51192 (diff)
Fixed sidebar layouts for selected "Object" and "Layers" items in ObjectList
Diffstat (limited to 'src/slic3r/GUI/GUI_ObjectManipulation.cpp')
-rw-r--r--src/slic3r/GUI/GUI_ObjectManipulation.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slic3r/GUI/GUI_ObjectManipulation.cpp b/src/slic3r/GUI/GUI_ObjectManipulation.cpp
index 51717a420..1f1de4003 100644
--- a/src/slic3r/GUI/GUI_ObjectManipulation.cpp
+++ b/src/slic3r/GUI/GUI_ObjectManipulation.cpp
@@ -625,6 +625,14 @@ void ObjectManipulation::update_reset_buttons_visibility()
m_reset_rotation_button->Show(show_rotation);
m_reset_scale_button->Show(show_scale);
m_drop_to_bed_button->Show(show_drop_to_bed);
+
+ // Because of CallAfter we need to layout sidebar after Show/hide of reset buttons one more time
+ Sidebar& panel = wxGetApp().sidebar();
+ if (!panel.IsFrozen()) {
+ panel.Freeze();
+ panel.Layout();
+ panel.Thaw();
+ }
});
}