this is annoying
This commit is contained in:
parent
e4082f2599
commit
7e24594be4
1 changed files with 6 additions and 2 deletions
|
@ -259,7 +259,6 @@ export class AppEvents {
|
|||
height: 20
|
||||
}),
|
||||
}
|
||||
|
||||
this.tray = new Tray(process.platform === 'win32' ? icons.win32 : (process.platform === 'darwin' ? icons.darwin : icons.linux))
|
||||
this.tray.setToolTip(app.getName())
|
||||
this.setTray(false)
|
||||
|
@ -298,12 +297,17 @@ export class AppEvents {
|
|||
private setTray(visible: boolean = utils.getWindow().isVisible()) {
|
||||
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([
|
||||
|
||||
{
|
||||
label: app.getName(),
|
||||
enabled: false,
|
||||
icon: path.join(__dirname, `../../resources/icons/icon.png`),
|
||||
icon: ciderIcon,
|
||||
},
|
||||
|
||||
{type: 'separator'},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue