diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index d5e46fd9..70cd6860 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -516,16 +516,6 @@ pub fn run() { .build(), ) .plugin(tauri_plugin_updater::Builder::new().build()) - .setup(|app| { - let splashscreen_window = app.get_webview_window("splashscreen").unwrap(); - let main_window = app.get_webview_window("main").unwrap(); - tauri::async_runtime::spawn(async move { - tokio::time::sleep(Duration::from_secs(3)).await; - splashscreen_window.close().unwrap(); - main_window.show().unwrap(); - }); - Ok(()) - }) .invoke_handler(tauri::generate_handler![ app_updates::fetch_update, app_updates::install_update, diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6507cc03..13deabf2 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -47,20 +47,7 @@ "width": 1600, "height": 900, "label": "main", - "visible": false - }, - { - "title": "Splashscreen", - "url": "public/splashscreen.html", - "label": "splashscreen", - "width": 528, - "height": 297, - "decorations": false, - "resizable": false, - "transparent": true, - "visible": true, - "center": true, - "focus": false + "visible": true } ], "security": {