cursor
This commit is contained in:
@@ -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!())
|
||||
|
||||
Reference in New Issue
Block a user