From ebe5ee3b1f41ecac8c5e13d80280acde9befe3bb Mon Sep 17 00:00:00 2001 From: YuSanka Date: Thu, 7 Jun 2018 14:57:45 +0200 Subject: [PATCH] Fixed uncorrected Settings sizer showing --- xs/src/slic3r/GUI/GUI.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xs/src/slic3r/GUI/GUI.cpp b/xs/src/slic3r/GUI/GUI.cpp index d2bcc7b58..898edc365 100644 --- a/xs/src/slic3r/GUI/GUI.cpp +++ b/xs/src/slic3r/GUI/GUI.cpp @@ -1132,10 +1132,12 @@ void select_current_object(int idx) if (idx < 0) return; m_objects_ctrl->Select(m_objects_model->GetItemById(idx)); - if (!m_sizer_object_buttons->IsShown(1)) - m_sizer_object_buttons->Show(true); - if (!m_collpane_settings->IsShown()) - m_collpane_settings->Show(true); + if (get_view_mode() == ConfigMenuModeExpert){ + if (!m_sizer_object_buttons->IsShown(1)) + m_sizer_object_buttons->Show(true); + if (!m_collpane_settings->IsShown()) + m_collpane_settings->Show(true); + } } void add_expert_mode_part(wxWindow* parent, wxBoxSizer* sizer, int event_object_selection_changed)