FIX: preset is incorrect when opening MW file

jira: STUDIO-9793
Change-Id: Ib1405c5badc4857a506ecea41ce4708eb2f83423
(cherry picked from commit e1d11d814ec0846fde047b54bfb2fadcd9303eec)
This commit is contained in:
zhimin.zeng
2025-01-14 12:09:20 +08:00
committed by Noisyfox
parent 9c7e3f864b
commit c781f6f450
2 changed files with 2 additions and 0 deletions

View File

@@ -6036,6 +6036,7 @@ void Plater::priv::reset(bool apply_presets_change)
project.reset();
wxGetApp().sidebar().printer_combox()->clear_selected_dev_id();
//BBS: reset all project embedded presets
wxGetApp().preset_bundle->reset_project_embedded_presets();
if (apply_presets_change)

View File

@@ -78,6 +78,7 @@ public:
int get_filament_idx() const { return m_filament_idx; }
std::string get_selected_dev_id() const { return m_selected_dev_id; }
void clear_selected_dev_id() { m_selected_dev_id.clear(); }
// BBS
wxString get_tooltip(const Preset& preset);