AdministrationWindow: finally fix boolean changing error

This commit is contained in:
lorenz.stechauner committed 2023-09-01 13:11:42 +02:00
1 parent 56a0eb794e
commit 33d763d968
3 files changed
+14 -14

No files matched your search

+2 -2
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;
}