diff options
author | YuSanka <yusanka@gmail.com> | 2019-02-22 11:38:56 +0300 |
---|---|---|
committer | YuSanka <yusanka@gmail.com> | 2019-02-22 11:38:56 +0300 |
commit | 26833ee6414bd2c56c6c6467f60a720e2c8c42d4 (patch) | |
tree | 1abeeee598f8fbd7bf790f255d2e0264e298031b /src/slic3r/GUI/Tab.hpp | |
parent | 73daf085e6463af12242c04da1c8ff1e4793075f (diff) |
Fixed bug with update (part of #1801)
Diffstat (limited to 'src/slic3r/GUI/Tab.hpp')
-rw-r--r-- | src/slic3r/GUI/Tab.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/slic3r/GUI/Tab.hpp b/src/slic3r/GUI/Tab.hpp index 430caaf0e..7ef066963 100644 --- a/src/slic3r/GUI/Tab.hpp +++ b/src/slic3r/GUI/Tab.hpp @@ -204,7 +204,6 @@ protected: void set_type(); int m_em_unit; - std::set<std::string> m_dirty_options; public: PresetBundle* m_preset_bundle; @@ -213,6 +212,11 @@ public: DynamicPrintConfig* m_config; ogStaticText* m_parent_preset_description_line; wxStaticText* m_colored_Label = nullptr; + // Counter for the updating (because of an update() function can have a recursive behavior): + // 1. increase value from the very beginning of an update() function + // 2. decrease value at the end of an update() function + // 3. propagate changed configuration to the Platter when (m_update_cnt == 0) only + int m_update_cnt = 0; public: Tab(wxNotebook* parent, const wxString& title, const char* name); @@ -284,7 +288,6 @@ protected: void update_frequently_changed_parameters(); void fill_icon_descriptions(); void set_tooltips_text(); - bool update_completed() const { return m_dirty_options.empty(); } }; class TabPrint : public Tab |