make crapple happy 2: Electric Boogaloo
This commit is contained in:
parent
d817950681
commit
b151631d03
3 changed files with 5 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "vencorddesktop",
|
"name": "VencordDesktop",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
|
|
|
@ -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', () => {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue