From b151631d0398d73f119d05a2cbc3ce93394edc8b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 4 Apr 2023 03:01:11 +0200 Subject: [PATCH] make crapple happy 2: Electric Boogaloo --- package.json | 2 +- src/main/index.ts | 4 ++++ src/main/mainWindow.ts | 4 ---- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8b5982d..7929588 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "vencorddesktop", + "name": "VencordDesktop", "private": true, "version": "0.1.0", "description": "", diff --git a/src/main/index.ts b/src/main/index.ts index 6fdc989..342cd70 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -9,6 +9,7 @@ import { DATA_DIR, VENCORD_FILES_DIR } from "./constants"; import { once } from "../shared/utils/once"; import { ensureVencordFiles } from "./utils/vencordLoader"; +import { ICON_PATH } from "../shared/paths"; import "./ipc"; // Make the Vencord files use our DATA_DIR @@ -30,6 +31,9 @@ if (!app.requestSingleInstanceLock()) { }); app.whenReady().then(async () => { + if (process.platform === "darwin") + app.dock.setIcon(ICON_PATH); + createWindows(); app.on('activate', () => { diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 79fc714..f540fac 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -81,10 +81,6 @@ export function createMainWindow() { icon: ICON_PATH }); - // le epic crapple moment - if (process.platform === "darwin") - app.dock.setIcon(ICON_PATH); - win.on("close", e => { if (isQuitting) return;