mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
ENABLE_GCODE_VIEWER_AS_STATE -> Fixed collapse toolbar showing-up when presing [T] in gcode preview mode
This commit is contained in:
parent
0348986bda
commit
39d08441cc
4 changed files with 13 additions and 15 deletions
|
@ -279,8 +279,12 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_S
|
|||
|
||||
update_ui_from_settings(); // FIXME (?)
|
||||
|
||||
if (m_plater != nullptr)
|
||||
if (m_plater != nullptr) {
|
||||
#if ENABLE_GCODE_VIEWER_AS_STATE
|
||||
m_plater->get_collapse_toolbar().set_enabled(wxGetApp().app_config->get("show_collapse_button") == "1");
|
||||
#endif // ENABLE_GCODE_VIEWER_AS_STATE
|
||||
m_plater->show_action_buttons(true);
|
||||
}
|
||||
}
|
||||
|
||||
#if ENABLE_LAYOUT_NO_RESTART
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue