Skip to content

Commit 63011ca

Browse files
fix(macos): fix regression in with_menu_on_left_click, closes #5220 (#5235)
Co-authored-by: Fabian-Lars <fabianlars@fabianlars.de>
1 parent 73d9cd5 commit 63011ca

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.changes/menu-on-left-click.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"tauri-runtime-wry": "patch"
3+
---
4+
5+
Fix regression in `SystemTray::with_menu_on_left_click`
6+

core/tauri-runtime-wry/src/system_tray.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ pub fn create_tray<T>(
105105

106106
#[cfg(target_os = "macos")]
107107
{
108-
builder = builder.with_icon_as_template(system_tray.icon_as_template)
108+
builder = builder
109+
.with_icon_as_template(system_tray.icon_as_template)
110+
.with_menu_on_left_click(system_tray.menu_on_left_click)
109111
}
110112

111113
let tray = builder

0 commit comments

Comments
 (0)