fix: update app user model ID handling and improve icon loading
This commit is contained in:
2
cinny
2
cinny
Submodule cinny updated: b400c4d6c3...c890cce37a
@@ -79,11 +79,8 @@ let apiServer = null;
|
|||||||
app.setName('Paarrot');
|
app.setName('Paarrot');
|
||||||
|
|
||||||
// On Windows, this controls the app name shown in toast notifications.
|
// 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') {
|
if (process.platform === 'win32') {
|
||||||
const isDevelopment = process.env.NODE_ENV === 'development' || !app.isPackaged;
|
app.setAppUserModelId('com.paarrot.app');
|
||||||
app.setAppUserModelId(isDevelopment ? process.execPath : 'com.paarrot.app');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure auto-updater
|
// Configure auto-updater
|
||||||
@@ -230,7 +227,7 @@ function createWindow() {
|
|||||||
// Enable navigation gestures (works on macOS and some Linux environments)
|
// Enable navigation gestures (works on macOS and some Linux environments)
|
||||||
enableBlinkFeatures: 'OverscrollHistoryNavigation'
|
enableBlinkFeatures: 'OverscrollHistoryNavigation'
|
||||||
},
|
},
|
||||||
icon: getIconPath(process.platform === 'win32' ? 'icon.ico' : 'icon.png'),
|
icon: nativeImage.createFromPath(getIconPath('icon.png')),
|
||||||
show: false // Don't show until ready
|
show: false // Don't show until ready
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user