mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
Fixed editable lower thumb of sequential slider when changing settings in preference dialog while the preview is hidden
This commit is contained in:
parent
f4311f67ef
commit
e6e3e98fd5
3 changed files with 16 additions and 18 deletions
|
@ -346,7 +346,6 @@ 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(get_app_config()->get("seq_top_layer_only") == "0");
|
||||
m_moves_slider->SetDrawMode(DoubleSlider::dmSequentialGCodeView);
|
||||
|
||||
wxBoxSizer* bottom_toolbar_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
|
@ -539,9 +538,6 @@ void Preview::refresh_print()
|
|||
return;
|
||||
|
||||
load_print(true);
|
||||
#if ENABLE_GCODE_VIEWER
|
||||
m_moves_slider->set_lower_editable(get_app_config()->get("seq_top_layer_only") == "0");
|
||||
#endif // ENABLE_GCODE_VIEWER
|
||||
}
|
||||
|
||||
void Preview::msw_rescale()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue