From 226414d1a588c8bc2b540a71fcd84c318319d6af Mon Sep 17 00:00:00 2001 From: Jonathan Dizdarevic Date: Tue, 20 Jul 2021 16:37:21 +0700 Subject: [PATCH] "cannot find type `MenuHash` in this scope" (#2240) --- .changes/menuhash-fix.md | 5 +++++ core/tauri-runtime-wry/src/menu.rs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changes/menuhash-fix.md 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;