fix(macos): fix returning BOOL instead of bool

This commit is contained in:
amrbashir 2022-06-05 15:05:42 +02:00
parent 125628b1ff
commit f5fb8b1df6
No known key found for this signature in database
GPG key ID: BBD7A47A2003FF33

View file

@ -93,7 +93,7 @@ impl TextMenuItem {
pub fn enabled(&self) -> bool {
unsafe {
let enabled: BOOL = msg_send![self.ns_menu_item, isEnabled];
enabled
enabled == YES
}
}