fix duplicate notification

This commit is contained in:
Araxeus
2021-04-01 15:50:26 +03:00
parent d73d0cf8ce
commit 2d534b0293
2 changed files with 1 additions and 2 deletions

View File

@ -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