return to png tray icon for win/linux

This commit is contained in:
Stephen Birarda 2016-01-18 14:28:21 -08:00
parent 2311627599
commit 92388949fd

View file

@ -504,6 +504,9 @@ function detectExistingStackManagerResources() {
return false;
}
const trayFilename = (osType == "Darwin" ? "console-tray-Template.png" : "console-tray.png");
const trayIcon = path.join(__dirname, '../resources/' + TRAY_FILENAME);
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
app.on('ready', function() {
@ -513,18 +516,6 @@ app.on('ready', function() {
app.dock.hide();
}
var trayFilename = null;
if (osType == "Darwin") {
trayFilename = "console-tray-Template.png";
} else if (osType == "Windows_NT") {
trayFilename = "console-tray.ico";
} else {
trayFilename = "console-tray.png";
}
const trayIcon = path.join(__dirname, '../resources/' + trayFilename);
// Create tray icon
tray = new Tray(trayIcon);
tray.setToolTip('High Fidelity Server Console');