mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 07:11:23 -05:00
Fixed build when ENABLE_GCODE_VIEWER is disabled
This commit is contained in:
1 parent
73b885fc37
commit
6fbb3db79c
3 files changed
+12
-3
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user