FIX: preset is incorrect when opening MW file
jira: STUDIO-9793 Change-Id: Ib1405c5badc4857a506ecea41ce4708eb2f83423
This commit is contained in:
parent
15f33638a1
commit
e1d11d814e
|
@ -6113,6 +6113,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)
|
||||||
|
|
|
@ -82,6 +82,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);
|
||||||
|
|
Loading…
Reference in New Issue