mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 20:16:26 +08:00
feat: basic app menu (#1207)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user