Files
ontime/apps/electron/src/menu/trayMenu.js
T
2024-08-27 14:21:35 +02:00

20 lines
417 B
JavaScript

/**
* Build description of tray context menu
* @param {function} showApp - function for making the window visible
* @param {function} askToQuit - function for quitting process
*/
function getTrayMenu(showApp, askToQuit) {
return [
{
label: 'Show App',
click: () => showApp(),
},
{
label: 'Shutdown',
click: () => askToQuit(),
},
];
}
module.exports = { getTrayMenu };