mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 11:54:20 +02:00
return to png tray icon for win/linux
This commit is contained in:
parent
2311627599
commit
92388949fd
1 changed files with 3 additions and 12 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue