mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 08:17:51 -06:00
Fixed build when ENABLE_GCODE_VIEWER is disabled
This commit is contained in:
parent
73b885fc37
commit
6fbb3db79c
3 changed files with 12 additions and 3 deletions
|
@ -482,9 +482,11 @@ void MainFrame::shutdown()
|
|||
#endif // ENABLE_LAYOUT_NO_RESTART
|
||||
|
||||
if (m_plater != nullptr) {
|
||||
#if ENABLE_GCODE_VIEWER_AS_STATE
|
||||
// restore sidebar if it was hidden when switching to gcode viewer mode
|
||||
if (m_restore_from_gcode_viewer.collapsed_sidebar)
|
||||
m_plater->collapse_sidebar(false);
|
||||
#endif // ENABLE_GCODE_VIEWER_AS_STATE
|
||||
// Stop the background thread (Windows and Linux).
|
||||
// Disconnect from a 3DConnextion driver (OSX).
|
||||
m_plater->get_mouse3d_controller().shutdown();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue