GCodeViewer - Hide bottom toolbar when loading a new gcode file

This commit is contained in:
enricoturri1966 2022-03-17 15:44:03 +01:00
parent 493050a279
commit 45e4d90504

View File

@ -966,6 +966,11 @@ void Preview::load_print_as_fff(bool keep_z_range)
Refresh(); Refresh();
zs = m_canvas->get_volumes_print_zs(true); zs = m_canvas->get_volumes_print_zs(true);
} }
else {
m_left_sizer->Hide(m_bottom_toolbar_panel);
m_left_sizer->Layout();
Refresh();
}
if (!zs.empty() && !m_keep_current_preview_type) { if (!zs.empty() && !m_keep_current_preview_type) {
unsigned int number_extruders = wxGetApp().is_editor() ? unsigned int number_extruders = wxGetApp().is_editor() ?