mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
Remove as_str() call from event.menu_item_id() (#2430)
There isn't a method `as_str()` associated to the `MenuIdRef` returned by `menu_item_id()`
This commit is contained in:
committed by
GitHub
parent
2088cd0f24
commit
102895fa0c
@@ -80,7 +80,7 @@ fn main() {
|
||||
tauri::Builder::default()
|
||||
.menu(menu)
|
||||
.on_menu_event(|event| {
|
||||
match event.menu_item_id().as_str() {
|
||||
match event.menu_item_id() {
|
||||
"quit" => {
|
||||
std::process::exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user