open tray with left click, fix logPath define

This commit is contained in:
Stephen Birarda 2016-01-04 16:58:16 -08:00
parent 9c2eebfaeb
commit cb83edfb60

View file

@ -82,6 +82,7 @@ function startInterface(url) {
}
var tray = null;
var logPath = null;
var homeServer = null;
const GO_HOME_INDEX = 0;
@ -183,12 +184,16 @@ app.on('ready', function() {
app.dock.hide()
}
var logPath = path.join(app.getAppPath(), 'logs');
logPath = path.join(app.getAppPath(), 'logs');
// Create tray icon
tray = new Tray(TRAY_ICON);
tray.setToolTip('High Fidelity Server Console');
tray.on('clicked', function() {
tray.popContextMenu();
});
updateTrayMenu(ProcessGroupStates.STOPPED);
if (interfacePath && dsPath && acPath) {