Skip to content

Commit a9493de

Browse files
fix: notification appId for windows (#539)
Co-authored-by: Afonso Jorge Ramos <[email protected]>
1 parent 6e6edd1 commit a9493de

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const { autoUpdater } = require('electron-updater');
44
const { onFirstRunMaybe } = require('./first-run');
55
const path = require('path');
66

7+
app.setAppUserModelId('com.electron.gitify');
8+
79
const iconIdle = path.join(
810
__dirname,
911
'assets',

src/utils/notifications.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ export const raiseNativeNotification = (
6969

7070
if (notifications.length === 1) {
7171
const notification = notifications[0];
72-
title = `Gitify - ${notification.repository.full_name}`;
72+
title = `${process.platform !== 'win32' ? 'Gitify - ' : ''}${
73+
notification.repository.full_name
74+
}`;
7375
body = notification.subject.title;
7476
notificationUrl = notification.subject.url;
7577
} else {

0 commit comments

Comments
 (0)