make crapple happy 2: Electric Boogaloo

This commit is contained in:
Vendicated 2023-04-04 03:01:11 +02:00
parent d817950681
commit b151631d03
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905
3 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
{ {
"name": "vencorddesktop", "name": "VencordDesktop",
"private": true, "private": true,
"version": "0.1.0", "version": "0.1.0",
"description": "", "description": "",

View file

@ -9,6 +9,7 @@ import { DATA_DIR, VENCORD_FILES_DIR } from "./constants";
import { once } from "../shared/utils/once"; import { once } from "../shared/utils/once";
import { ensureVencordFiles } from "./utils/vencordLoader"; import { ensureVencordFiles } from "./utils/vencordLoader";
import { ICON_PATH } from "../shared/paths";
import "./ipc"; import "./ipc";
// Make the Vencord files use our DATA_DIR // Make the Vencord files use our DATA_DIR
@ -30,6 +31,9 @@ if (!app.requestSingleInstanceLock()) {
}); });
app.whenReady().then(async () => { app.whenReady().then(async () => {
if (process.platform === "darwin")
app.dock.setIcon(ICON_PATH);
createWindows(); createWindows();
app.on('activate', () => { app.on('activate', () => {

View file

@ -81,10 +81,6 @@ export function createMainWindow() {
icon: ICON_PATH icon: ICON_PATH
}); });
// le epic crapple moment
if (process.platform === "darwin")
app.dock.setIcon(ICON_PATH);
win.on("close", e => { win.on("close", e => {
if (isQuitting) return; if (isQuitting) return;