AdministrationWindow: Fix default value change check

This commit is contained in:
2023-09-01 12:57:09 +02:00
parent effc9f9230
commit 56a0eb794e
3 changed files with 8 additions and 8 deletions

@ -212,9 +212,9 @@ namespace Elwig.Helpers {
} else if (input is Xceed.Wpf.Toolkit.CheckComboBox ccb) {
return ccb.SelectedItems.Cast<object>().ToArray();
} else if (input is CheckBox cb) {
return cb.IsChecked;
return (cb.IsChecked != null ? (cb.IsChecked == true ? bool.TrueString : bool.FalseString) : null);
} else if (input is RadioButton rb) {
return rb.IsChecked;
return (rb.IsChecked != null ? (rb.IsChecked == true ? bool.TrueString : bool.FalseString) : null);
} else {
return null;
}