From f5fb8b1df6c3a1d4750ee9abc9ca2f1e98fcdf67 Mon Sep 17 00:00:00 2001 From: amrbashir Date: Sun, 5 Jun 2022 15:05:42 +0200 Subject: [PATCH] fix(macos): fix returning BOOL instead of bool --- src/platform_impl/macos/menu_item.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/macos/menu_item.rs b/src/platform_impl/macos/menu_item.rs index 351a7dc..942bc92 100644 --- a/src/platform_impl/macos/menu_item.rs +++ b/src/platform_impl/macos/menu_item.rs @@ -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 } }