From 2d534b029396cb4bfdbfa637b79d80524f1ada40 Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Thu, 1 Apr 2021 15:50:26 +0300 Subject: [PATCH] fix duplicate notification --- plugins/downloader/menu.js | 1 - plugins/notifications/back.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/downloader/menu.js b/plugins/downloader/menu.js index cf78001c..06a3c124 100644 --- a/plugins/downloader/menu.js +++ b/plugins/downloader/menu.js @@ -64,7 +64,6 @@ module.exports = (win, options, refreshMenu) => [ { label: "Choose download folder", click: () => { - let result = dialog.showOpenDialogSync({ properties: ["openDirectory", "createDirectory"], defaultPath: getFolder(options.downloadFolder), diff --git a/plugins/notifications/back.js b/plugins/notifications/back.js index 0d390307..2a95489a 100644 --- a/plugins/notifications/back.js +++ b/plugins/notifications/back.js @@ -31,7 +31,7 @@ module.exports = (win, options) => { win.on("ready-to-show", () => { // Register the callback for new song information registerCallback(songInfo => { - // If song is playing send notification + // If song is playing && title isn't the same as last one - send notification if (!songInfo.isPaused && songInfo.title !== oldTitle) { oldTitle = songInfo.title; // Close the old notification