Commit 461ae611 authored by dev0tion's avatar dev0tion

Use tray icon, only set window icon on Windows

parent 064055bd
......@@ -46,7 +46,9 @@ function createWindow() {
title: "Breeze Wallet"
});
if (os.platform() === "win32"){
mainWindow.setIcon(applicationIcon);
}
// and load the index.html of the app.
mainWindow.loadURL(url.format({
......@@ -191,9 +193,9 @@ function createTray() {
let trayIcon;
if (serve) {
trayIcon = nativeImage.createFromPath('./src/assets/images/breeze-logo.png');
trayIcon = nativeImage.createFromPath('./src/assets/images/breeze-logo-tray.png');
} else {
trayIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo.png'));
trayIcon = nativeImage.createFromPath(path.join(__dirname + '/assets/images/breeze-logo-tray.png'));
}
let systemTray = new Tray(trayIcon);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment