Skip to content

Commit

Permalink
Correct tray to close
Browse files Browse the repository at this point in the history
  • Loading branch information
nilar committed Nov 29, 2016
1 parent 3c4cb33 commit 0718176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/electron/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import appMenu from './menu';
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow;
let tray;
let willQuitApp = false;

function createWindow() {
Expand Down Expand Up @@ -39,7 +40,7 @@ function createWindow() {
}
})

appTray(config, clickShow, clickPlayer);
tray = appTray(config, clickShow, clickPlayer);
appMenu(config, clickPlayer);
}

Expand Down

0 comments on commit 0718176

Please sign in to comment.