Skip to content

Commit 226414d

Browse files
authored
"cannot find type MenuHash in this scope" (#2240)
1 parent dd52e73 commit 226414d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changes/menuhash-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-runtime-wry": patch
3+
---
4+
5+
Fix the error "cannot find type MenuHash in this scope"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub use wry::application::platform::macos::{
3131
#[cfg(feature = "system-tray")]
3232
use crate::{Error, Message, Result, TrayMessage};
3333

34-
#[cfg(feature = "menu")]
34+
#[cfg(any(feature = "menu", feature = "system-tray"))]
3535
use tauri_runtime::menu::MenuHash;
3636

3737
use uuid::Uuid;

0 commit comments

Comments
 (0)