Skip to content

Commit

Permalink
main: tray: fix raise on click
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka committed Jul 9, 2023
1 parent e6515f0 commit b28f837
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ export class AppTray {
const restore = doDesktopHacks();
this.tray = new Tray(requireIcon(`tray.${color}`));
restore();
// doesn't work when using 'appindicator'
this.tray.on('click', () => this.send('raise'));
// doesn't work on KDE Plasma
this.tray.on('click', () => this.raise() );
this.tray.setToolTip('Electron NCM');
/**
* @type {import('electron').MenuItemConstructorOptions[]}
Expand Down

0 comments on commit b28f837

Please sign in to comment.