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();