fix(tamagotchi): Windows tray icon rendering (#735)
This commit is contained in:
@@ -58,7 +58,9 @@ function setupTray(params: {
|
||||
captionWindow: ReturnType<typeof setupCaptionWindowManager>
|
||||
}): void {
|
||||
once(() => {
|
||||
const appTray = new Tray(nativeImage.createFromPath(macOSTrayIcon).resize({ width: 16 }))
|
||||
const trayImage = nativeImage.createFromPath(isMacOS ? macOSTrayIcon : icon).resize({ width: 16 })
|
||||
trayImage.setTemplateImage(isMacOS)
|
||||
const appTray = new Tray(trayImage)
|
||||
onAppBeforeQuit(() => appTray.destroy())
|
||||
|
||||
const contextMenu = Menu.buildFromTemplate([
|
||||
|
||||
Reference in New Issue
Block a user