mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix sidebar not shown when open 3mf file from command line arg (#3172)
* Show sidebar when open file from cmd * Fix issue that sidebar collapse button is not enabled when load 3mf file with gcode
This commit is contained in:
@@ -5828,8 +5828,10 @@ void Plater::priv::set_current_panel(wxPanel* panel, bool no_slice)
|
||||
};
|
||||
|
||||
//BBS: add the collapse logic
|
||||
if (panel == preview) {
|
||||
this->enable_sidebar(!q->only_gcode_mode());
|
||||
}
|
||||
if (panel == preview && q->only_gcode_mode()) {
|
||||
this->enable_sidebar(false);
|
||||
preview->get_canvas3d()->enable_select_plate_toolbar(false);
|
||||
}
|
||||
else if (panel == preview && q->using_exported_file() && (q->m_valid_plates_count <= 1)) {
|
||||
|
||||
Reference in New Issue
Block a user