From d7c4d2b67b4b5a29f74aeaa4ddaab8d7e985b005 Mon Sep 17 00:00:00 2001 From: okanishcheva Date: Mon, 26 Aug 2019 18:35:59 +0300 Subject: [PATCH] DEXW-1413: add user model id for win notification --- electron/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/electron/main.ts b/electron/main.ts index 796a1c6ce5..fb9f468b74 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -193,6 +193,7 @@ class Main implements IMain { this.registerProtocol() .then(() => this.createWindow()) .then(() => this.addContextMenu()) + .then(() => this.setAppUserModelId()) } private addContextMenu(): Promise { @@ -306,6 +307,12 @@ class Main implements IMain { } } + private setAppUserModelId() { + if (process.platform === 'win32') { + app.setAppUserModelId('com.wavesplatform.client.lite'); + } + } + private static onAllWindowClosed() { app.quit(); }