Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Oct 14, 2024
1 parent 29c6794 commit 6e54c3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .changes/with_menu_on_left_click_windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"tray-icon": "minor"
---

Implemented the ability to toggle `TrayIcon::with_menu_on_left_click` on windows
Implemented `TrayIcon::set_show_menu_on_left_click` on windows
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,11 @@ impl TrayIcon {
let _ = is_template;
}

/// Disable or enable showing the tray menu on left click. **macOS and Windows only**.
/// Disable or enable showing the tray menu on left click.
///
/// ## Platform-specific:
///
/// - **Linux:** Unsupported.
pub fn set_show_menu_on_left_click(&self, enable: bool) {
#[cfg(any(target_os = "macos", target_os = "windows"))]
self.tray.borrow_mut().set_show_menu_on_left_click(enable);
Expand Down

0 comments on commit 6e54c3f

Please sign in to comment.