AdministrationWindow: finally fix boolean changing error

This commit is contained in:
2023-09-01 13:11:42 +02:00
parent 56a0eb794e
commit 33d763d968
3 changed files with 14 additions and 14 deletions

View File

@ -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 != null ? (cb.IsChecked == true ? bool.TrueString : bool.FalseString) : null);
return cb.IsChecked?.ToString();
} else if (input is RadioButton rb) {
return (rb.IsChecked != null ? (rb.IsChecked == true ? bool.TrueString : bool.FalseString) : null);
return rb.IsChecked?.ToString();
} else {
return null;
}