tidy up tray.js - it made my eyes hurt
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/3909/head
parent
808240eef9
commit
aa7728cad3
|
@ -21,7 +21,7 @@ let trayIcon = null;
|
|||
|
||||
exports.hasTray = function hasTray() {
|
||||
return (trayIcon !== null);
|
||||
}
|
||||
};
|
||||
|
||||
exports.create = function(win, config) {
|
||||
// no trays on darwin
|
||||
|
@ -42,17 +42,17 @@ exports.create = function (win, config) {
|
|||
const contextMenu = Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Show/Hide ' + config.brand,
|
||||
click: toggleWin
|
||||
click: toggleWin,
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Quit',
|
||||
click: function() {
|
||||
app.quit();
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
trayIcon = new Tray(config.icon_path);
|
||||
|
|
Loading…
Reference in New Issue