Revert the icon usage for the main window

Close #192
Side effect #98
This commit is contained in:
Yuya Ochiai
2016-07-13 01:08:57 +09:00
parent ffa7ccab7c
commit 722d9b731d
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,6 @@ Expected release date: 2016-07-16
- Fixed authentication dialog not working for proxy.
#### Windows
- Fixed the pixelated app icon on the top left of the main window.
- Fixed the blurred system tray icon.
- Fixed a redundant description appearing in the pinned start menu on Windows 7.

View File

@@ -319,7 +319,9 @@ app.on('ready', function() {
// follow Electron's defaults
window_options = {};
}
if (process.platform === 'linux') {
if (process.platform === 'win32' || process.platform === 'linux') {
// On HiDPI(125%) Windows environment, the taskbar icon is pixelated. So this line is necessary. See #192.
// As the side effect, #98 reoccurs.
window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
}
window_options.title = app.getName();