diff --git a/electron/main.ts b/electron/main.ts index 3961b8ab34..c4990ff24d 100644 --- a/electron/main.ts +++ b/electron/main.ts @@ -192,7 +192,8 @@ class Main implements IMain { private onAppReady() { this.registerProtocol() .then(() => this.createWindow()) - .then(() => this.addContextMenu()); + .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(); }