Skip to content

Commit

Permalink
fix(macos): fix regression in with_menu_on_left_click, closes #5220 (
Browse files Browse the repository at this point in the history
…#5235)

Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
  • Loading branch information
amrbashir and FabianLars committed Sep 30, 2022
1 parent 73d9cd5 commit 63011ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/menu-on-left-click.md
@@ -0,0 +1,6 @@
---
"tauri-runtime-wry": "patch"
---

Fix regression in `SystemTray::with_menu_on_left_click`

4 changes: 3 additions & 1 deletion core/tauri-runtime-wry/src/system_tray.rs
Expand Up @@ -105,7 +105,9 @@ pub fn create_tray<T>(

#[cfg(target_os = "macos")]
{
builder = builder.with_icon_as_template(system_tray.icon_as_template)
builder = builder
.with_icon_as_template(system_tray.icon_as_template)
.with_menu_on_left_click(system_tray.menu_on_left_click)
}

let tray = builder
Expand Down

0 comments on commit 63011ca

Please sign in to comment.