This commit is contained in:
2026-07-29 02:15:04 +08:00
parent 7f2e1489eb
commit c786295ea9
5 changed files with 495 additions and 197 deletions
+6 -3
View File
@@ -1,7 +1,10 @@
mod cursor;
mod ufa;
fn launch_app() {
fn launch_app(app: &tauri::App) {
let handle = app.handle();
crate::ufa::init();
crate::cursor::init(handle);
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
@@ -9,8 +12,8 @@ pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.invoke_handler(tauri::generate_handler![])
.setup(|_| {
launch_app();
.setup(|app| {
launch_app(app);
Ok(())
})
.build(tauri::generate_context!())