mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06:00
UnsavedChangesDialog : added correct icons for the categories
+ fixed a crash when try to save changes for the SLA printer preset
This commit is contained in:
parent
e40593f2ef
commit
bcc23428fa
7 changed files with 65 additions and 19 deletions
|
@ -198,6 +198,7 @@ protected:
|
|||
|
||||
int m_icon_count;
|
||||
std::map<std::string, size_t> m_icon_index; // Map from an icon file name to its index
|
||||
std::map<wxString, std::string> m_category_icon; // Map from a category name to an icon file name
|
||||
std::vector<PageShp> m_pages;
|
||||
Page* m_active_page {nullptr};
|
||||
bool m_disable_tree_sel_changed_event {false};
|
||||
|
@ -349,6 +350,8 @@ public:
|
|||
void cache_config_diff(const std::vector<std::string>& selected_options);
|
||||
void apply_config_from_cache();
|
||||
|
||||
const std::map<wxString, std::string>& get_category_icon_map() { return m_category_icon; }
|
||||
|
||||
protected:
|
||||
void create_line_with_widget(ConfigOptionsGroup* optgroup, const std::string& opt_key, widget_t widget);
|
||||
wxSizer* compatible_widget_create(wxWindow* parent, PresetDependencies &deps);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue