Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Jul 14, 2023
1 parent 1bbea66 commit ecc7c23
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,7 @@ impl TrayIcon {
/// Disable or enable showing the tray menu on left click. **macOS only**.
pub fn set_show_menu_on_left_click(&self, enable: bool) {
#[cfg(target_os = "macos")]
self.tray
.lock()
.unwrap()
.set_show_menu_on_left_click(enable);
self.tray.borrow_mut().set_show_menu_on_left_click(enable);
#[cfg(not(target_os = "macos"))]
let _ = enable;
}
Expand Down

0 comments on commit ecc7c23

Please sign in to comment.