diff options
author | YuSanka <yusanka@gmail.com> | 2021-12-08 18:36:35 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2021-12-08 18:36:50 +0300 |
commit | 77e8429eae3f7046aab68496e62bd4b260a74559 (patch) | |
tree | 16ef58a5b261aa28de5203f55749b1e1b8b57d64 | |
parent | 06fd732b5720070795195d4a880ba0ba0c8804fe (diff) |
Fix for #7146 - Reset settings for spiral vase mode is inconsistent
-rw-r--r-- | src/slic3r/GUI/Tab.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Tab.cpp b/src/slic3r/GUI/Tab.cpp index 3172e22c3..335dd6619 100644 --- a/src/slic3r/GUI/Tab.cpp +++ b/src/slic3r/GUI/Tab.cpp @@ -885,6 +885,10 @@ void Tab::on_roll_back_value(const bool to_sys /*= true*/) } m_postpone_update_ui = false; + + // When all values are rolled, then we hane to update whole tab in respect to the reverted values + update(); + update_changed_ui(); } @@ -1148,6 +1152,13 @@ void Tab::on_value_change(const std::string& opt_key, const boost::any& value) if (opt_key == "extruders_count") wxGetApp().plater()->on_extruders_change(boost::any_cast<size_t>(value)); + if (m_postpone_update_ui) { + // It means that not all values are rolled to the system/last saved values jet. + // And call of the update() can causes a redundant check of the config values, + // see https://github.com/prusa3d/PrusaSlicer/issues/7146 + return; + } + update(); } |