fix icon missing in some windows (#124)

Co-authored-by: V <vendicated@riseup.net>
This commit is contained in:
Zyrouge
2023-09-25 01:19:54 +00:00
committed by GitHub
co-authored by V
parent b876f450c3
commit 061fec44af
3 changed files with 11 additions and 6 deletions
+5 -2
View File
@@ -7,10 +7,13 @@
import { BrowserWindow } from "electron";
import { join } from "path";
import { SplashProps } from "shared/browserWinProperties";
import { VIEW_DIR } from "shared/paths";
import { ICON_PATH, VIEW_DIR } from "shared/paths";
export function createSplashWindow() {
const splash = new BrowserWindow(SplashProps);
const splash = new BrowserWindow({
...SplashProps,
icon: ICON_PATH
});
splash.loadFile(join(VIEW_DIR, "splash.html"));