mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-16 05:27:50 +00:00
FIX: preset is incorrect when opening MW file
jira: STUDIO-9793 Change-Id: Ib1405c5badc4857a506ecea41ce4708eb2f83423 (cherry picked from commit e1d11d814ec0846fde047b54bfb2fadcd9303eec)
This commit is contained in:
@@ -6036,6 +6036,7 @@ void Plater::priv::reset(bool apply_presets_change)
|
|||||||
|
|
||||||
project.reset();
|
project.reset();
|
||||||
|
|
||||||
|
wxGetApp().sidebar().printer_combox()->clear_selected_dev_id();
|
||||||
//BBS: reset all project embedded presets
|
//BBS: reset all project embedded presets
|
||||||
wxGetApp().preset_bundle->reset_project_embedded_presets();
|
wxGetApp().preset_bundle->reset_project_embedded_presets();
|
||||||
if (apply_presets_change)
|
if (apply_presets_change)
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ public:
|
|||||||
int get_filament_idx() const { return m_filament_idx; }
|
int get_filament_idx() const { return m_filament_idx; }
|
||||||
|
|
||||||
std::string get_selected_dev_id() const { return m_selected_dev_id; }
|
std::string get_selected_dev_id() const { return m_selected_dev_id; }
|
||||||
|
void clear_selected_dev_id() { m_selected_dev_id.clear(); }
|
||||||
|
|
||||||
// BBS
|
// BBS
|
||||||
wxString get_tooltip(const Preset& preset);
|
wxString get_tooltip(const Preset& preset);
|
||||||
|
|||||||
Reference in New Issue
Block a user