this is annoying

This commit is contained in:
Core 2022-05-19 23:26:25 +01:00
parent e4082f2599
commit 7e24594be4
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -259,7 +259,6 @@ export class AppEvents {
height: 20 height: 20
}), }),
} }
this.tray = new Tray(process.platform === 'win32' ? icons.win32 : (process.platform === 'darwin' ? icons.darwin : icons.linux)) this.tray = new Tray(process.platform === 'win32' ? icons.win32 : (process.platform === 'darwin' ? icons.darwin : icons.linux))
this.tray.setToolTip(app.getName()) this.tray.setToolTip(app.getName())
this.setTray(false) this.setTray(false)
@ -298,12 +297,17 @@ export class AppEvents {
private setTray(visible: boolean = utils.getWindow().isVisible()) { private setTray(visible: boolean = utils.getWindow().isVisible()) {
this.i18n = utils.getLocale(utils.getStoreValue('general.language')) this.i18n = utils.getLocale(utils.getStoreValue('general.language'))
const ciderIcon = nativeImage.createFromPath(path.join(__dirname, `../../resources/icons/icon.png`)).resize({
width: 20,
height: 20
})
const menu = Menu.buildFromTemplate([ const menu = Menu.buildFromTemplate([
{ {
label: app.getName(), label: app.getName(),
enabled: false, enabled: false,
icon: path.join(__dirname, `../../resources/icons/icon.png`), icon: ciderIcon,
}, },
{type: 'separator'}, {type: 'separator'},