Hides view toolbar in gcode viewer
This commit is contained in:
parent
659c24d3d8
commit
ea9a8b7e93
@ -391,7 +391,6 @@ void MainFrame::update_layout()
|
|||||||
{
|
{
|
||||||
m_main_sizer->Add(m_plater, 1, wxEXPAND);
|
m_main_sizer->Add(m_plater, 1, wxEXPAND);
|
||||||
m_plater->set_bed_shape({ { 0.0, 0.0 }, { 200.0, 0.0 }, { 200.0, 200.0 }, { 0.0, 200.0 } }, "", "", true);
|
m_plater->set_bed_shape({ { 0.0, 0.0 }, { 200.0, 0.0 }, { 200.0, 200.0 }, { 0.0, 200.0 } }, "", "", true);
|
||||||
m_plater->enable_view_toolbar(false);
|
|
||||||
m_plater->get_collapse_toolbar().set_enabled(false);
|
m_plater->get_collapse_toolbar().set_enabled(false);
|
||||||
m_plater->collapse_sidebar(true);
|
m_plater->collapse_sidebar(true);
|
||||||
m_plater->Show();
|
m_plater->Show();
|
||||||
|
@ -4001,6 +4001,10 @@ bool Plater::priv::init_view_toolbar()
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
view_toolbar.select_item("3D");
|
view_toolbar.select_item("3D");
|
||||||
|
|
||||||
|
#if ENABLE_GCODE_VIEWER
|
||||||
|
if (wxGetApp().is_editor())
|
||||||
|
#endif // ENABLE_GCODE_VIEWER
|
||||||
view_toolbar.set_enabled(true);
|
view_toolbar.set_enabled(true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user