From 9cf7113dbefe42da91afb70a5a73a83104d91a83 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 27 Feb 2026 23:05:05 +1100 Subject: [PATCH] fix: update app user model ID handling for Windows and improve icon path resolution --- electron/main.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/electron/main.js b/electron/main.js index 01e4aa3..00f8099 100644 --- a/electron/main.js +++ b/electron/main.js @@ -78,11 +78,6 @@ let apiServer = null; // Set app name for notifications and system tray app.setName('Paarrot'); -// On Windows, this controls the app name shown in toast notifications. -if (process.platform === 'win32') { - app.setAppUserModelId('com.paarrot.app'); -} - // Configure auto-updater autoUpdater.autoDownload = false; autoUpdater.autoInstallOnAppQuit = true; @@ -227,7 +222,7 @@ function createWindow() { // Enable navigation gestures (works on macOS and some Linux environments) enableBlinkFeatures: 'OverscrollHistoryNavigation' }, - icon: nativeImage.createFromPath(getIconPath('icon.png')), + icon: getIconPath(process.platform === 'win32' ? 'icon.ico' : 'icon.png'), show: false // Don't show until ready });