Skip to content

Commit

Permalink
change tray icon for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
macisi committed May 28, 2018
1 parent eca3cde commit 56ec53b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/suite/Armor.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ class Armor {
}
}
beforeQuit(event) {
this.equipments.forEach(instance => {
instance.destroy();
});
}
willQuit() {
}
Expand Down
Binary file added app/suite/assets/origin.white.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions app/suite/assets/origin.white.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions app/suite/equipment/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ class MenuController {
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
}
destroy() {

}
}

module.exports = MenuController;
5 changes: 4 additions & 1 deletion app/suite/equipment/Tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let iconPath;
if (platform === 'darwin') {
iconPath = require.resolve('../assets/tray.png');
} else if (platform === 'win32') {
iconPath = require.resolve('../assets/tray.ico');
iconPath = require.resolve('../assets/origin.white.png');
}

class TrayController {
Expand All @@ -21,6 +21,9 @@ class TrayController {
this.core.toggle();
});
}
destroy() {
this.tray.destroy();
}
}

module.exports = TrayController;

0 comments on commit 56ec53b

Please sign in to comment.