mirror of https://github.com/odrling/Aegisub
Fix enabling/disabling the default script resolution edit boxes in the preferences dialog
This commit is contained in:
parent
3ef728405d
commit
c50d80cf24
|
@ -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 New Issue