mirror of
https://github.com/cucumber-sp/yandex-music-linux.git
synced 2024-12-23 22:22:59 +03:00
parent
b58e0b6b27
commit
0b2c2f1372
@ -9,10 +9,10 @@ diff --git a/main/lib/createTray.js b/main/lib/createTray.js
|
||||
+ const iconPath = path.join(__dirname, '../../build/next-desktop/favicon.png');
|
||||
+ const tray = new Tray(iconPath);
|
||||
+ const contextMenu = Menu.buildFromTemplate([
|
||||
+ {label: 'Open Window', click: () => window.show()},
|
||||
+ {label: 'Quit YandexMusic', click: () => app.quit()}
|
||||
+ {label: 'Открыть', click: () => window.show()},
|
||||
+ {label: 'Закрыть Яндекс Музыку', click: () => app.quit()}
|
||||
+ ]);
|
||||
+ tray.setToolTip('Yandex Music');
|
||||
+ tray.setToolTip('Яндекс Музыка');
|
||||
+ tray.setContextMenu(contextMenu);
|
||||
+
|
||||
+ tray.on('click', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user