Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2020-03-06 21:15:37 +0300
committerYuSanka <yusanka@gmail.com>2020-03-06 21:15:37 +0300
commit2363f2a4a32e9be7b94b3ad0862d85c1821cb823 (patch)
tree4930bcff6e13ea9c38a78e1ac7972ae38fcf9bcc /src/slic3r/GUI
parent42d4910c12be918b4afd3a3f51b12e8ce57792e9 (diff)
Fixed update of UI values, related on parent preset, when preset is detached from system
Diffstat (limited to 'src/slic3r/GUI')
-rw-r--r--src/slic3r/GUI/Tab.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp
index e8dc6b128..0c08fcb29 100644
--- a/src/slic3r/GUI/Tab.cpp
+++ b/src/slic3r/GUI/Tab.cpp
@@ -3096,6 +3096,11 @@ void Tab::save_preset(std::string name /*= ""*/, bool detach)
if (m_type == Preset::TYPE_PRINTER)
static_cast<TabPrinter*>(this)->m_initial_extruders_count = static_cast<TabPrinter*>(this)->m_extruders_count;
+
+ // Parent preset is "default" after detaching, so we should to update UI values, related on parent preset
+ if (detach)
+ update_ui_items_related_on_parent_preset(m_presets->get_selected_preset_parent());
+
update_changed_ui();
/* If filament preset is saved for multi-material printer preset,