mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -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
|
@ -402,6 +402,11 @@ Slic3r::GUI::PageShp Tab::add_options_page(const wxString& title, const std::str
|
|||
icon_idx = ++m_icon_count;
|
||||
m_icon_index[icon] = icon_idx;
|
||||
}
|
||||
|
||||
if (m_category_icon.find(title) == m_category_icon.end()) {
|
||||
// Add new category to the category_to_icon list.
|
||||
m_category_icon[title] = icon;
|
||||
}
|
||||
}
|
||||
// Initialize the page.
|
||||
#ifdef __WXOSX__
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue