Skip to content

Commit

Permalink
#4 always tray context menu
Browse files Browse the repository at this point in the history
  • Loading branch information
skoro committed Dec 16, 2024
1 parent e5b283e commit 44359ae
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/system.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,9 @@ function updateTrayContextMenu(tray, contextMenu, clipItems) {
}
}

// Linux: In order for changes made to individual MenuItems to take effect, you have to call setContextMenu again.
// In order for changes made to individual MenuItems to take effect, you have to call setContextMenu again.
// https://www.electronjs.org/docs/latest/api/tray
if (isPlatformLinux()) {
tray.setContextMenu(contextMenu);
}

return contextMenu;
}
Expand Down

0 comments on commit 44359ae

Please sign in to comment.