Files
ontime/apps/electron/src/menu/trayMenu.js
T
Carlos Valente 2c47d90f34 chore: configure project wide linter (#577)
* chore(lint): configure project-wide linter

* chore(lint): improve linting in files

* chore(lint): hide warnings in CI
2023-11-07 22:30:39 +01:00

20 lines
427 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 (Alt + 1)',
click: () => showApp(),
},
{
label: 'Shutdown',
click: () => askToQuit(),
},
];
}
module.exports = { getTrayMenu };