mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
20 lines
417 B
JavaScript
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 };
|