diff --git a/.changes/menuhash-fix.md b/.changes/menuhash-fix.md new file mode 100644 index 000000000..a9fea561a --- /dev/null +++ b/.changes/menuhash-fix.md @@ -0,0 +1,5 @@ +--- +"tauri-runtime-wry": patch +--- + +Fix the error "cannot find type MenuHash in this scope" diff --git a/core/tauri-runtime-wry/src/menu.rs b/core/tauri-runtime-wry/src/menu.rs index 1e5a2924f..3499f99b1 100644 --- a/core/tauri-runtime-wry/src/menu.rs +++ b/core/tauri-runtime-wry/src/menu.rs @@ -31,7 +31,7 @@ pub use wry::application::platform::macos::{ #[cfg(feature = "system-tray")] use crate::{Error, Message, Result, TrayMessage}; -#[cfg(feature = "menu")] +#[cfg(any(feature = "menu", feature = "system-tray"))] use tauri_runtime::menu::MenuHash; use uuid::Uuid;