mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
open tray with left click, fix logPath define
This commit is contained in:
parent
9c2eebfaeb
commit
cb83edfb60
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue