diff options
Diffstat (limited to 'src/slic3r/GUI/GUI_Preview.cpp')
-rw-r--r-- | src/slic3r/GUI/GUI_Preview.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slic3r/GUI/GUI_Preview.cpp b/src/slic3r/GUI/GUI_Preview.cpp index 5126b1789..b91105100 100644 --- a/src/slic3r/GUI/GUI_Preview.cpp +++ b/src/slic3r/GUI/GUI_Preview.cpp @@ -222,8 +222,7 @@ Preview::Preview( , m_volumes_cleanup_required(false) #endif // __linux__ { - if (init(parent, model)) - { + if (init(parent, model)) { #if !ENABLE_GCODE_VIEWER show_hide_ui_elements("none"); #endif // !ENABLE_GCODE_VIEWER @@ -349,7 +348,7 @@ bool Preview::init(wxWindow* parent, Model* model) right_sizer->Add(m_layers_slider_sizer, 1, wxEXPAND, 0); m_moves_slider = new DoubleSlider::Control(m_bottom_toolbar_panel, wxID_ANY, 0, 0, 0, 100, wxDefaultPosition, wxSize(-1, 3 * GetTextExtent("m").y), wxSL_HORIZONTAL); - m_moves_slider->set_lower_editable(false); + m_moves_slider->set_lower_editable(get_app_config()->get("seq_top_layer_only") == "0"); m_moves_slider->SetDrawMode(DoubleSlider::dmSequentialGCodeView); wxBoxSizer* bottom_toolbar_sizer = new wxBoxSizer(wxHORIZONTAL); @@ -542,6 +541,7 @@ void Preview::refresh_print() return; load_print(true); + m_moves_slider->set_lower_editable(get_app_config()->get("seq_top_layer_only") == "0"); } void Preview::msw_rescale() |