make crapple happy 2: Electric Boogaloo

This commit is contained in:
Vendicated
2023-04-04 03:01:11 +02:00
parent d817950681
commit b151631d03
3 changed files with 5 additions and 5 deletions

View File

@@ -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', () => {

View File

@@ -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;