mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-09 01:13:55 +00:00
2c47d90f34
* chore(lint): configure project-wide linter * chore(lint): improve linting in files * chore(lint): hide warnings in CI
20 lines
427 B
JavaScript
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 };
|