From d3ef25d7e1bb19e27282340bd6e43259eee4430f Mon Sep 17 00:00:00 2001 From: Avi Wadhwa Date: Thu, 11 Apr 2024 17:18:26 -0700 Subject: [PATCH] Fix bug where song lyrics wouldn't start when switching from Spotify (not open) to Apple Music (song playing/paused) I wasn't setting the apple music persistend ID to nil if the swapped platform wasn't running --- SpotifyLyricsInMenubar/SpotifyLyricsInMenubarApp.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/SpotifyLyricsInMenubar/SpotifyLyricsInMenubarApp.swift b/SpotifyLyricsInMenubar/SpotifyLyricsInMenubarApp.swift index 96b8d13..fdbe3f4 100644 --- a/SpotifyLyricsInMenubar/SpotifyLyricsInMenubarApp.swift +++ b/SpotifyLyricsInMenubar/SpotifyLyricsInMenubarApp.swift @@ -63,6 +63,7 @@ struct SpotifyLyricsInMenubarApp: App { viewmodel.isPlaying = false viewmodel.currentlyPlaying = nil viewmodel.currentlyPlayingName = nil + viewmodel.currentlyPlayingAppleMusicPersistentID = nil return } print("Application just started. lets check whats playing")