Fixed build when tech ENABLE_GCODE_VIEWER is disabled

This commit is contained in:
enricoturri1966 2020-10-16 14:08:24 +02:00
parent 0f85777a79
commit ccd8e3644e
3 changed files with 11 additions and 7 deletions

View file

@ -1578,8 +1578,10 @@ void GUI_App::add_config_menu(wxMenuBar *menu)
PreferencesDialog dlg(mainframe);
dlg.ShowModal();
app_layout_changed = dlg.settings_layout_changed();
#if ENABLE_GCODE_VIEWER
if (dlg.seq_top_layer_only_changed())
this->plater_->refresh_print();
#endif // ENABLE_GCODE_VIEWER
}
if (app_layout_changed) {
// hide full main_sizer for mainFrame