mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
improve helper function name
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
f7a567f07c
commit
ae617d9bd3
1 file changed
+2
-2
@@ -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<TrayMenuRegistration[]>,
|
||||
navigateToPreferences: () => void,
|
||||
): Disposer {
|
||||
const icon = getTrayIcon();
|
||||
const icon = getTrayIconPath();
|
||||
|
||||
tray = new Tray(icon);
|
||||
tray.setToolTip(packageInfo.description);
|
||||
|
||||
Reference in new issue
Block a user