Fixed selection of sensible active print / filament / printer profile

after the initial wizard run.
This commit is contained in:
bubnikv 2018-03-14 13:29:50 +01:00
parent 1969a8b2c1
commit e680658cf5
4 changed files with 22 additions and 0 deletions

View file

@ -723,6 +723,10 @@ sub config_wizard {
} else {
# Wizard returned a name of a preset bundle bundled with the installation. Unpack it.
wxTheApp->{preset_bundle}->install_vendor_configbundle($directory . '/' . $result->{preset_name} . '.ini');
# Reset the print / filament / printer selections, so that following line will select some sensible defaults.
if ($fresh_start) {
wxTheApp->{app_config}->reset_selections;
}
# Reload all presets after the vendor config bundle has been installed.
wxTheApp->{preset_bundle}->load_presets(wxTheApp->{app_config});
}