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:
parent
f7a567f07c
commit
ae617d9bd3
@ -24,7 +24,7 @@ const TRAY_LOG_PREFIX = "[TRAY]";
|
|||||||
// note: instance of Tray should be saved somewhere, otherwise it disappears
|
// note: instance of Tray should be saved somewhere, otherwise it disappears
|
||||||
export let tray: Tray;
|
export let tray: Tray;
|
||||||
|
|
||||||
function getTrayIcon() {
|
function getTrayIconPath(): string {
|
||||||
return path.resolve(
|
return path.resolve(
|
||||||
staticFilesDirectory,
|
staticFilesDirectory,
|
||||||
isDevelopment ? "../build/tray" : "icons", // copied within electron-builder extras
|
isDevelopment ? "../build/tray" : "icons", // copied within electron-builder extras
|
||||||
@ -37,7 +37,7 @@ export function initTray(
|
|||||||
trayMenuItems: IComputedValue<TrayMenuRegistration[]>,
|
trayMenuItems: IComputedValue<TrayMenuRegistration[]>,
|
||||||
navigateToPreferences: () => void,
|
navigateToPreferences: () => void,
|
||||||
): Disposer {
|
): Disposer {
|
||||||
const icon = getTrayIcon();
|
const icon = getTrayIconPath();
|
||||||
|
|
||||||
tray = new Tray(icon);
|
tray = new Tray(icon);
|
||||||
tray.setToolTip(packageInfo.description);
|
tray.setToolTip(packageInfo.description);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user