mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-07-29 12:54:31 +03:00
To OptionsGroup added "reload_config" to reload configurations after changes in any fields & "get_config_value" to get current option value from config.
In Field extended "set_value" to Choice. In PrintConfig added default_value to "post_process".
This commit is contained in:
@@ -63,6 +63,10 @@ public:
|
||||
wxString title() const { return m_title; }
|
||||
size_t iconID() const { return m_iconID; }
|
||||
void set_config(DynamicPrintConfig* config_in) { m_config = config_in; }
|
||||
void reload_config(){
|
||||
for (auto group: m_optgroups)
|
||||
group->reload_config();
|
||||
}
|
||||
|
||||
ConfigOptionsGroupShp new_optgroup(std::string title, int noncommon_label_width = -1);
|
||||
};
|
||||
@@ -139,7 +143,7 @@ public:
|
||||
virtual void update() = 0;
|
||||
void update_dirty();
|
||||
void load_config(DynamicPrintConfig config);
|
||||
|
||||
void reload_config();
|
||||
};
|
||||
|
||||
//Slic3r::GUI::Tab::Print;
|
||||
|
||||
Reference in New Issue
Block a user