mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 20:32:01 +08:00
Fix for #11574 > 2.7.0-a1 Temperature Variation Input
This commit is contained in:
parent
cde4d16f4a
commit
57b5b8814b
@ -286,7 +286,7 @@ void SpinInput::Create(wxWindow *parent,
|
|||||||
state_handler.attach({&label_color, &text_color});
|
state_handler.attach({&label_color, &text_color});
|
||||||
state_handler.update_binds();
|
state_handler.update_binds();
|
||||||
|
|
||||||
text_ctrl = new wxTextCtrl(this, wxID_ANY, text, {20, 4}, wxDefaultSize, style | wxBORDER_NONE | wxTE_PROCESS_ENTER, wxTextValidator(wxFILTER_DIGITS));
|
text_ctrl = new wxTextCtrl(this, wxID_ANY, text, {20, 4}, wxDefaultSize, style | wxBORDER_NONE | wxTE_PROCESS_ENTER, wxTextValidator(wxFILTER_NUMERIC));
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
text_ctrl->OSXDisableAllSmartSubstitutions();
|
text_ctrl->OSXDisableAllSmartSubstitutions();
|
||||||
#endif // __WXOSX__
|
#endif // __WXOSX__
|
||||||
@ -462,7 +462,7 @@ void SpinInputDouble::Create(wxWindow *parent,
|
|||||||
state_handler.attach({&label_color, &text_color});
|
state_handler.attach({&label_color, &text_color});
|
||||||
state_handler.update_binds();
|
state_handler.update_binds();
|
||||||
|
|
||||||
text_ctrl = new wxTextCtrl(this, wxID_ANY, text, {20, 4}, wxDefaultSize, style | wxBORDER_NONE | wxTE_PROCESS_ENTER, wxTextValidator(wxFILTER_DIGITS));
|
text_ctrl = new wxTextCtrl(this, wxID_ANY, text, {20, 4}, wxDefaultSize, style | wxBORDER_NONE | wxTE_PROCESS_ENTER, wxTextValidator(wxFILTER_NUMERIC));
|
||||||
#ifdef __WXOSX__
|
#ifdef __WXOSX__
|
||||||
text_ctrl->OSXDisableAllSmartSubstitutions();
|
text_ctrl->OSXDisableAllSmartSubstitutions();
|
||||||
#endif // __WXOSX__
|
#endif // __WXOSX__
|
||||||
|
Loading…
x
Reference in New Issue
Block a user