mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 19:12:38 -07:00
Added option to apply the sequential slider in preview to top layer only or to whole gcode toolpaths
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user