Fix enabling/disabling the default script resolution edit boxes in the preferences dialog
This commit is contained in:
parent
3ef728405d
commit
c50d80cf24
1 changed files with 2 additions and 2 deletions
|
@ -257,7 +257,7 @@ void OptionPage::EnableIfChecked(wxControl *cbx, wxControl *ctrl) {
|
|||
if (!cb) return;
|
||||
|
||||
ctrl->Enable(cb->IsChecked());
|
||||
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!!evt.GetInt()); });
|
||||
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!!evt.GetInt()); evt.Skip(); });
|
||||
}
|
||||
|
||||
void OptionPage::DisableIfChecked(wxControl *cbx, wxControl *ctrl) {
|
||||
|
@ -265,5 +265,5 @@ void OptionPage::DisableIfChecked(wxControl *cbx, wxControl *ctrl) {
|
|||
if (!cb) return;
|
||||
|
||||
ctrl->Enable(!cb->IsChecked());
|
||||
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!evt.GetInt()); });
|
||||
cb->Bind(wxEVT_CHECKBOX, [=](wxCommandEvent& evt) { ctrl->Enable(!evt.GetInt()); evt.Skip(); });
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue