Skip to content

Commit 3a19cef

Browse files
author
Oscar Kiyoshige Garces Aparicio
committed
Rename icon for MacOS tray
1 parent 8633a1e commit 3a19cef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ function toggleWindow() {
112112
}
113113

114114
function createTray() {
115-
tray = new Tray(path.join(__static, 'icon-18.png'))
115+
const trayIconFile = process.platform === 'darwin' ? 'icon--macos--tray.png' : 'icon.png'
116+
tray = new Tray(path.join(__static, trayIconFile))
116117
tray.setToolTip('Pomotroid\nClick to Restore')
117118
tray.on('click', () => {
118119
toggleWindow()
File renamed without changes.

0 commit comments

Comments
 (0)