Added a warning I forgot to change on last commit

macos-click-through
Jon Valdés 5 years ago
parent 28128b56b2
commit 6f4692db1b

@ -75,9 +75,10 @@ impl FromValue for String {
impl FromValue for bool { impl FromValue for bool {
fn from_value(&mut self, value: Value) { fn from_value(&mut self, value: Value) {
// TODO -- Warn when incorrect type
if value.is_bool() { if value.is_bool() {
*self = value.as_bool().unwrap(); *self = value.as_bool().unwrap();
}else{
error!("Setting expected a string, but received {:?}", value);
} }
} }
} }

Loading…
Cancel
Save