From ae617d9bd38ffa7f22f0a7ae41718552e4e3489c Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Mon, 9 May 2022 13:44:01 -0400 Subject: [PATCH] improve helper function name Signed-off-by: Sebastian Malton --- src/main/tray/tray.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/tray/tray.ts b/src/main/tray/tray.ts index 14995c1507..e2c4425f42 100644 --- a/src/main/tray/tray.ts +++ b/src/main/tray/tray.ts @@ -24,7 +24,7 @@ const TRAY_LOG_PREFIX = "[TRAY]"; // note: instance of Tray should be saved somewhere, otherwise it disappears export let tray: Tray; -function getTrayIcon() { +function getTrayIconPath(): string { return path.resolve( staticFilesDirectory, isDevelopment ? "../build/tray" : "icons", // copied within electron-builder extras @@ -37,7 +37,7 @@ export function initTray( trayMenuItems: IComputedValue, navigateToPreferences: () => void, ): Disposer { - const icon = getTrayIcon(); + const icon = getTrayIconPath(); tray = new Tray(icon); tray.setToolTip(packageInfo.description);