feat: Add start minimized as a launch argument (#316)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Redeven
2024-01-06 23:11:00 -03:00
committed by GitHub
parent 0881143d57
commit 0f0bddbef9
2 changed files with 14 additions and 6 deletions

View File

@@ -11,10 +11,11 @@ import { ICON_PATH, VIEW_DIR } from "shared/paths";
import { Settings } from "./settings";
export function createSplashWindow() {
export function createSplashWindow(startMinimized = false) {
const splash = new BrowserWindow({
...SplashProps,
icon: ICON_PATH
icon: ICON_PATH,
show: !startMinimized
});
splash.loadFile(join(VIEW_DIR, "splash.html"));