feat: Add start as minimized toggle to settings (#248)

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Co-authored-by: V <vendicated@riseup.net>
Co-authored-by: Lewis Crichton <lewi@lewisakura.moe>
This commit is contained in:
Michal Vaniš
2023-12-09 14:42:44 +01:00
committed by GitHub
parent 4974848a56
commit 40b952d8bf
4 changed files with 15 additions and 8 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"));