mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Fix windows taskbar icon
This commit is contained in:
@@ -45,13 +45,9 @@ finderWindow.on('close', function (e) {
|
||||
finderWindow.hide()
|
||||
})
|
||||
|
||||
var trayIcon = process.platform === 'darwin'
|
||||
? !systemPreferences.isDarkMode()
|
||||
? path.join(__dirname, '../resources/tray-icon-default.png')
|
||||
: path.join(__dirname, '../resources/tray-icon-dark.png')
|
||||
: process.platform === 'win32'
|
||||
? path.join(__dirname, '../resources/tray-icon-dark.png')
|
||||
: path.join(__dirname, '../resources/tray-icon.png')
|
||||
var trayIcon = process.platform === 'darwin' || process.platform === 'win32'
|
||||
? path.join(__dirname, '../resources/tray-icon-default.png')
|
||||
: path.join(__dirname, '../resources/tray-icon.png')
|
||||
var appIcon = new Tray(trayIcon)
|
||||
appIcon.setToolTip('Boostnote')
|
||||
if (process.platform === 'darwin') {
|
||||
|
||||
Reference in New Issue
Block a user