diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-04-26 17:53:04 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-04-29 12:36:00 +0300 |
commit | fb0836b0b2f5a5c3eaaa25d5d92c3d5e9661b81b (patch) | |
tree | f369c4c94d7e4b5b1c0c469f7866656ecc503eb1 /src/slic3r/GUI/GUI.cpp | |
parent | c8815041e2707c354846688cc77110f21d3c3a76 (diff) |
ConfigWizard: Select an appropriate printer based on the bundle order
Diffstat (limited to 'src/slic3r/GUI/GUI.cpp')
-rw-r--r-- | src/slic3r/GUI/GUI.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/slic3r/GUI/GUI.cpp b/src/slic3r/GUI/GUI.cpp index 4a3ccc356..9a641c7c0 100644 --- a/src/slic3r/GUI/GUI.cpp +++ b/src/slic3r/GUI/GUI.cpp @@ -125,9 +125,6 @@ void config_wizard(int reason) if (! wxGetApp().check_unsaved_changes()) return; - // save selected preset before config wizard running - const auto printer_preset_name = wxGetApp().preset_bundle->printers.get_edited_preset().name; - try { ConfigWizard wizard(nullptr, static_cast<ConfigWizard::RunReason>(reason)); wizard.run(wxGetApp().preset_bundle, wxGetApp().preset_updater); @@ -136,10 +133,8 @@ void config_wizard(int reason) show_error(nullptr, e.what()); } - // select old(before config wizard running) preset - wxGetApp().get_tab(Preset::TYPE_PRINTER)->select_preset(printer_preset_name); - // If old preset if invisible now, then first visible preset will be selected - // So, let control the case if multi-part object is on the scene and first visible preset is SLA + wxGetApp().load_current_presets(); + if (wxGetApp().preset_bundle->printers.get_edited_preset().printer_technology() == ptSLA && wxGetApp().obj_list()->has_multi_part_objects()) { |