From 533bf419afccebf890e939b9d7453e355cfa8a54 Mon Sep 17 00:00:00 2001 From: danielriosr <68661990+danielriosr@users.noreply.github.com> Date: Sat, 9 May 2026 00:42:32 -0400 Subject: [PATCH] fix: remove white screen on app start --- src-tauri/tauri.conf.json | 3 ++- src/main.tsx | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index d05c92d7..96d28d69 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -20,7 +20,8 @@ "center": true, "decorations": false, "resizable": true, - "transparent": false + "transparent": false, + "visible": false } ], "security": { diff --git a/src/main.tsx b/src/main.tsx index 8b5a84c3..a16b840d 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -18,6 +18,11 @@ declare module "@tanstack/react-router" { router: typeof router; } } +// Function to show the application window +async function showAppWindow() { + const appWindow = (await import("@tauri-apps/api/window")).getCurrentWindow(); + appWindow.show(); +} // Theme provider component that applies theme to document function ThemeProvider({ children }: { children: ReactNode }) { @@ -37,3 +42,6 @@ ReactDOM.createRoot(document.getElementById("root")!).render( , ); + +// Executes function to show window +showAppWindow();