Skip to content

Commit

Permalink
quit from tray
Browse files Browse the repository at this point in the history
  • Loading branch information
matbee-eth committed Dec 11, 2015
1 parent 9762eed commit db7b788
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@ var lib;


var contextMenu = new Menu();
contextMenu.append(new MenuItem({
type: 'separator'
}));

// contextMenu.append(new MenuItem({
// type: 'separator'
// }));
contextMenu.append(new MenuItem({
type: 'normal',
label: 'Close',
click: () => {
app.quit();
}
}));
/* Some usefull chrome args */
app.commandLine.appendSwitch('v', -1);
app.commandLine.appendSwitch('vmodule', 'console=0');
Expand All @@ -27,7 +40,7 @@ app.on('ready', () => {
})
lib.on("deviceFound", (host, devicename) => {
console.log(host, devicename);
contextMenu.append(new MenuItem({
contextMenu.insert(0, new MenuItem({
label: devicename,
type: 'checkbox',
click: () => {
Expand Down

0 comments on commit db7b788

Please sign in to comment.