user focused app
This commit is contained in:
+13
-2
@@ -1,8 +1,19 @@
|
||||
mod ufa;
|
||||
|
||||
fn launch_app() {
|
||||
crate::ufa::init();
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
.setup(|_| {
|
||||
launch_app();
|
||||
Ok(())
|
||||
})
|
||||
.build(tauri::generate_context!())
|
||||
.expect("error while running tauri application")
|
||||
.run(|_, _| ());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user