Fixed a manually editing of a "Filament Settings -> Advanced -> Filament type" (#2232)
This commit is contained in:
parent
6bc6806a2e
commit
f0acf4f745
@ -608,7 +608,11 @@ void Choice::BUILD() {
|
||||
if (m_is_editable) {
|
||||
temp->Bind(wxEVT_KILL_FOCUS, ([this](wxEvent& e) {
|
||||
e.Skip();
|
||||
if (m_opt.type == coStrings) return;
|
||||
if (m_opt.type == coStrings) {
|
||||
on_change_field();
|
||||
return;
|
||||
}
|
||||
|
||||
double old_val = !m_value.empty() ? boost::any_cast<double>(m_value) : -99999;
|
||||
if (is_defined_input_value<wxBitmapComboBox>(window, m_opt.type)) {
|
||||
if (fabs(old_val - boost::any_cast<double>(get_value())) <= 0.0001)
|
||||
|
Loading…
Reference in New Issue
Block a user