From d2e49c16fe14cac36ef0b1ce27c3f04f9721699d Mon Sep 17 00:00:00 2001 From: Kr4ight Date: Sun, 5 Apr 2026 03:06:19 +0200 Subject: [PATCH 1/3] Fix: Windows blank page deadlock --- src-tauri/src/launcher/auth.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/launcher/auth.rs b/src-tauri/src/launcher/auth.rs index ecc45fd..ffb4760 100644 --- a/src-tauri/src/launcher/auth.rs +++ b/src-tauri/src/launcher/auth.rs @@ -50,7 +50,8 @@ pub fn auth_create_link(app: AppHandle) -> Result { let app_handle = app.clone(); - tauri::WebviewWindowBuilder::new(&app, "auth", tauri::WebviewUrl::External(url)) + std::thread::spawn(move || { + tauri::WebviewWindowBuilder::new(&app, "auth", tauri::WebviewUrl::External(url)) .title("Microsoft Login") .inner_size(500.0, 700.0) .resizable(false) @@ -74,7 +75,8 @@ pub fn auth_create_link(app: AppHandle) -> Result { true }) .build() - .map_err(|e| e.to_string())?; + .map_err(|e| e.to_string()).unwrap(); + }); Ok(link) } From 369d7e889c7645af2b9cccd470b82c9a69d3157c Mon Sep 17 00:00:00 2001 From: Kr4ight Date: Sun, 5 Apr 2026 03:10:38 +0200 Subject: [PATCH 2/3] Background color when blank --- src-tauri/tauri.conf.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 81ac13b..7cf5469 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -14,7 +14,8 @@ { "title": "saturn-launcher", "width": 1000, - "height": 650 + "height": 650, + "backgroundColor": "#0a0a0a" } ], "security": { From d3bdd1d3a510a1e175aa6bdf9e96c39d3418d5a4 Mon Sep 17 00:00:00 2001 From: Kr4ight Date: Sun, 5 Apr 2026 03:20:38 +0200 Subject: [PATCH 3/3] Fix: blank page for 3 seconds when loading --- src-tauri/capabilities/default.json | 3 ++- src-tauri/tauri.conf.json | 3 ++- src/App.tsx | 7 +++++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 4cdbf49..ac1b518 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -5,6 +5,7 @@ "windows": ["main"], "permissions": [ "core:default", - "opener:default" + "opener:default", + "core:window:allow-show" ] } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 7cf5469..ec87aae 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -15,7 +15,8 @@ "title": "saturn-launcher", "width": 1000, "height": 650, - "backgroundColor": "#0a0a0a" + "backgroundColor": "#0a0a0a", + "visible": false } ], "security": { diff --git a/src/App.tsx b/src/App.tsx index 5e048f4..224b5df 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -8,6 +8,7 @@ import { versions } from "./lib/launcher"; import { GameVersion } from "./lib/types"; import { MinecraftAccount } from "./lib/auth"; import { getVersion, updateVersion } from "./lib/saturn"; +import { getCurrentWindow } from "@tauri-apps/api/window"; type Section = "play" | "mods" | "settings"; @@ -61,6 +62,12 @@ export default function App() { if (selectedVersion?.id) updateVersion(selectedVersion?.id); }, [selectedVersion]); + useEffect(() => { + const window = getCurrentWindow(); + + window.show(); + }, []); + return (