From 2e0bf52a40beeb6b66ab9a440e05f1cfec6d4764 Mon Sep 17 00:00:00 2001 From: Max Litruv Boonzaayer Date: Fri, 27 Feb 2026 22:56:41 +1100 Subject: [PATCH] fix: update app user model ID handling and improve icon loading --- cinny | 2 +- electron/main.js | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/cinny b/cinny index b400c4d..c890cce 160000 --- a/cinny +++ b/cinny @@ -1 +1 @@ -Subproject commit b400c4d6c3b63a4a1fa91ae45e4d08fbf3ab2d34 +Subproject commit c890cce37a2e54130a457c7cd8b676c4681aa2de diff --git a/electron/main.js b/electron/main.js index 19bfe0b..01e4aa3 100644 --- a/electron/main.js +++ b/electron/main.js @@ -79,11 +79,8 @@ let apiServer = null; app.setName('Paarrot'); // On Windows, this controls the app name shown in toast notifications. -// In dev mode, use process.execPath so Windows can find the shortcut for electron.exe. -// In production, use the proper app ID. if (process.platform === 'win32') { - const isDevelopment = process.env.NODE_ENV === 'development' || !app.isPackaged; - app.setAppUserModelId(isDevelopment ? process.execPath : 'com.paarrot.app'); + app.setAppUserModelId('com.paarrot.app'); } // Configure auto-updater @@ -230,7 +227,7 @@ function createWindow() { // Enable navigation gestures (works on macOS and some Linux environments) enableBlinkFeatures: 'OverscrollHistoryNavigation' }, - icon: getIconPath(process.platform === 'win32' ? 'icon.ico' : 'icon.png'), + icon: nativeImage.createFromPath(getIconPath('icon.png')), show: false // Don't show until ready });