From 0b2c2f13720e8da55f87b9c02ace973f71c70702 Mon Sep 17 00:00:00 2001 From: Andrey Onishchenko Date: Tue, 20 Feb 2024 16:10:09 +0300 Subject: [PATCH] Tray translation Closes #47 --- patches/0003-Create-app-tray-icon.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/patches/0003-Create-app-tray-icon.patch b/patches/0003-Create-app-tray-icon.patch index c849d9e..7956999 100644 --- a/patches/0003-Create-app-tray-icon.patch +++ b/patches/0003-Create-app-tray-icon.patch @@ -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', () => {