Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"center": true,
"decorations": false,
"resizable": true,
"transparent": false
"transparent": false,
"visible": false
}
],
"security": {
Expand Down
8 changes: 8 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) {
Expand All @@ -37,3 +42,6 @@ ReactDOM.createRoot(document.getElementById("root")!).render(
</QueryClientProvider>
</React.StrictMode>,
);

// Executes function to show window
showAppWindow();
Loading