Skip to content

Commit

Permalink
edit tray menu that delete apps button and add separator
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunmoAhn committed Jan 15, 2018
1 parent 5dc0c7b commit 76e1f42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ function createTray(contextMenuTemplate) {
if (!tray) tray = new Tray(path.join(__dirname, 'resource', 'tray_icon.png'));

const contextMenu = Menu.buildFromTemplate(contextMenuTemplate.concat([
{ type: 'separator' },
{ label: 'Setting', type: 'normal', click: createSetting },
{
label: 'Exit',
Expand Down Expand Up @@ -95,4 +96,4 @@ app.on('window-all-closed', () => {
});

app.on('activate', () => {
});
});
2 changes: 0 additions & 2 deletions src/WidgetManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,6 @@ class WidgetManager {
const values = Object.values(widgets);
let element = null;

menuTemplate.push({ label: 'Apps', type: 'normal' });

function openWindow(widget) {
this.openWindow(widget);
}
Expand Down

0 comments on commit 76e1f42

Please sign in to comment.