From 784dada9179bb9306984b50e946e974345a37db0 Mon Sep 17 00:00:00 2001 From: "maosheng.wei" Date: Mon, 5 Aug 2024 16:12:25 +0800 Subject: [PATCH] ENH: open wizard dialog after creating or editing custom Filament Jira: XXXX Change-Id: I68d13df943b29cb9464f04651ed3fa9ec7511789 (cherry picked from commit e4f4720a249559c6a3c98872338ca7dbe4c73044) --- src/slic3r/GUI/Plater.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index daa5fc112..fdd3509f8 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -8053,6 +8053,7 @@ void Plater::priv::on_create_filament(SimpleEvent &) CreatePresetSuccessfulDialog success_dlg(wxGetApp().mainframe, SuccessType::FILAMENT); int res = success_dlg.ShowModal(); } + wxGetApp().run_wizard(ConfigWizard::RR_USER, ConfigWizard::SP_FILAMENTS); } void Plater::priv::on_modify_filament(SimpleEvent &evt) @@ -8080,7 +8081,8 @@ void Plater::priv::on_modify_filament(SimpleEvent &evt) tab->select_preset(need_edit_preset->name); // when some preset have modified, if the printer is not need_edit_preset_name compatible printer, the preset will jump to other preset, need select again if (!need_edit_preset->is_compatible) tab->select_preset(need_edit_preset->name); - } + } else + wxGetApp().run_wizard(ConfigWizard::RR_USER, ConfigWizard::SP_FILAMENTS); }