This commit is contained in:
Core 2022-06-07 01:21:57 +01:00
parent d0c2d6d36e
commit 512d068e2f
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -317,6 +317,8 @@ export class AppEvents {
{type: 'separator'}, {type: 'separator'},
/* For now only idea i dont know if posible to implement /* For now only idea i dont know if posible to implement
this could be implemented in a plugin if you would like track info, it would be impractical to put listeners in this file. -Core
{ {
label: this.i18n['action.tray.listento'], label: this.i18n['action.tray.listento'],
enabled: false, enabled: false,
@ -332,7 +334,7 @@ export class AppEvents {
*/ */
{ {
visible: (visible === false), visible: !visible,
label: this.i18n['action.tray.playpause'], label: this.i18n['action.tray.playpause'],
click: () => { click: () => {
utils.getWindow().webContents.executeJavaScript('MusicKitInterop.playPause()') utils.getWindow().webContents.executeJavaScript('MusicKitInterop.playPause()')
@ -340,7 +342,7 @@ export class AppEvents {
}, },
{ {
visible: (visible === false), visible: !visible,
label: this.i18n['action.tray.next'], label: this.i18n['action.tray.next'],
click: () => { click: () => {
utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.next()`) utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.next()`)
@ -348,14 +350,14 @@ export class AppEvents {
}, },
{ {
visible: (visible === false), visible: !visible,
label: this.i18n['action.tray.previous'], label: this.i18n['action.tray.previous'],
click: () => { click: () => {
utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.previous()`) utils.getWindow().webContents.executeJavaScript(`MusicKitInterop.previous()`)
} }
}, },
{type: 'separator'}, {type: 'separator', visible: !visible},
{ {
label: (visible ? this.i18n['action.tray.minimize'] : `${this.i18n['action.tray.show']}`), label: (visible ? this.i18n['action.tray.minimize'] : `${this.i18n['action.tray.show']}`),