mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
PhysicalPrinterDialog improvements : Printer device default name is changed to force the user to change it
SavePresetDialog : Fixed OSX bug, when wxEVT_TEXT wasn't invoked after change selection in ComboBox
This commit is contained in:
parent
5eb3b21be7
commit
1079d4644c
2 changed files with 14 additions and 3 deletions
|
@ -1054,6 +1054,11 @@ SavePresetDialog::Item::Item(Preset::Type type, const std::string& suffix, wxBox
|
|||
m_combo->Append(from_u8(value));
|
||||
|
||||
m_combo->Bind(wxEVT_TEXT, [this](wxCommandEvent&) { update(); });
|
||||
#ifdef __WXOSX__
|
||||
// Under OSX wxEVT_TEXT wasn't invoked after change selection in combobox,
|
||||
// So process wxEVT_COMBOBOX too
|
||||
m_combo->Bind(wxEVT_COMBOBOX, [this](wxCommandEvent&) { update(); });
|
||||
#endif //__WXOSX__
|
||||
|
||||
m_valid_label = new wxStaticText(m_parent, wxID_ANY, "");
|
||||
m_valid_label->SetFont(wxGetApp().bold_font());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue