From 73f6a321aab255c85aa6a67477035f616cfcae6e Mon Sep 17 00:00:00 2001 From: MrGarlic Date: Sun, 5 May 2024 19:07:51 -0400 Subject: [PATCH] fixed pnpm issues --- src/main/mainWindow.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index ce625c3..ddeaa1d 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -11,8 +11,8 @@ import { dialog, Menu, MenuItemConstructorOptions, - nativeTheme, nativeImage, + nativeTheme, Tray } from "electron"; import { rm } from "fs/promises"; @@ -21,6 +21,7 @@ import { IpcEvents } from "shared/IpcEvents"; import { isTruthy } from "shared/utils/guards"; import { once } from "shared/utils/once"; import type { SettingsStore } from "shared/utils/SettingsStore"; + import { ICON_PATH } from "../shared/paths"; import { createAboutWindow } from "./about"; import { initArRPC } from "./arrpc"; @@ -507,8 +508,8 @@ async function setTrayIcon(): Promise { cancelId: 2, icon: getTrayIcon() }); - if (userSelection.response == 2) return; - if (userSelection.response == 1) { + if (userSelection.response === 2) return; + if (userSelection.response === 1) { Settings.store.trayIconPath = void 0; return; }