diff --git a/assets/icon.ico b/assets/icon.ico index 89bccb9..31fa06f 100644 Binary files a/assets/icon.ico and b/assets/icon.ico differ diff --git a/src/main/main.ts b/src/main/main.ts index ce6fd79..dee73c7 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -142,3 +142,8 @@ app }); }) .catch(console.log); + +if (process.platform === 'win32') +{ + app.setAppUserModelId(app.name); +} diff --git a/src/main/misc/electron-notification.ts b/src/main/misc/electron-notification.ts index 5975626..4a2b603 100644 --- a/src/main/misc/electron-notification.ts +++ b/src/main/misc/electron-notification.ts @@ -1,16 +1,23 @@ import { Notification } from 'electron'; +const path = require('path'); import { ipcMain, dialog, shell } from 'electron'; + interface notificationProps { title: string; text: string; type: string; + } +const appIcon = path.resolve(__dirname, './../../../assets/icon.png'); ipcMain.on('show-notification', (event, message: notificationProps) => { const { title, text } = message; + const notification = new Notification({ title: title, body: text, + silent: false, + icon:appIcon }); notification.show();