Configurable default G-code preview view type (#15769)

This commit is contained in:
Ian Bassi
2026-09-22 20:50:59 -03:00
committed by GitHub
parent d820303a3f
commit e71497738f
4 changed files with 134 additions and 25 deletions
+6
View File
@@ -224,6 +224,12 @@ void AppConfig::set_defaults()
set("preview_dim_previous_layers_brightness", std::to_string(std::max(0, std::min(brightness, 99))));
}
// ORCA: view type the G-code preview opens with. "auto" keeps the automatic choice (Filament for
// multi material prints, Line Type for single material ones), "last" restores the view type the user
// picked last, any other value is a fixed view type name, see GCodeViewer::view_type_to_config_name().
if (get("preview_default_view_type").empty())
set("preview_default_view_type", "auto");
if (get("filaments_area_preferred_count").empty())
set("filaments_area_preferred_count", "10");