feat: basic app menu (#1207)

This commit is contained in:
lin onetwo
2023-03-01 12:37:53 +08:00
committed by GitHub
parent c096fa156b
commit b575094f4b
7 changed files with 154 additions and 9 deletions
+3
View File
@@ -5,6 +5,7 @@
mod commands;
mod state;
mod menu;
use dotenvy::dotenv;
use state::AppState;
use std::env;
@@ -47,6 +48,8 @@ async fn main() {
Ok(())
})
.invoke_handler(commands::invoke_handler())
.menu(menu::init())
.on_menu_event(menu::menu_handler)
.run(tauri::generate_context!())
.expect("error while running tauri application");
}