fix potential empty notification showing

This commit is contained in:
Araxeus
2023-02-17 18:05:16 +02:00
parent a3c5be0cc2
commit 87cbdc3dc3

View File

@ -28,6 +28,7 @@ module.exports = (win) => {
// Register songInfoCallback
registerCallback(songInfo => {
if (!songInfo.artist && !songInfo.title) return;
savedSongInfo = { ...songInfo };
if (!songInfo.isPaused &&
(songInfo.url !== lastUrl || config.get("unpauseNotification"))