Fixed the bug where a media player would linger after the app was closed.

This commit is contained in:
Jas Singh
2024-07-02 21:02:30 -07:00
parent fee85b255c
commit 651d2f2e86

View File

@@ -34,7 +34,7 @@ const Media = () => {
)[0];
}
if (curPlayer && curPlayer.play_back_status !== "Stopped") {
if (media.players.length && curPlayer && curPlayer.play_back_status !== "Stopped") {
return (self.children = [
AlbumCover(curPlayer),
Widget.Box({