Fixed the bug where a media player would linger after the app was closed.
This commit is contained in:
@@ -34,7 +34,7 @@ const Media = () => {
|
|||||||
)[0];
|
)[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curPlayer && curPlayer.play_back_status !== "Stopped") {
|
if (media.players.length && curPlayer && curPlayer.play_back_status !== "Stopped") {
|
||||||
return (self.children = [
|
return (self.children = [
|
||||||
AlbumCover(curPlayer),
|
AlbumCover(curPlayer),
|
||||||
Widget.Box({
|
Widget.Box({
|
||||||
|
|||||||
Reference in New Issue
Block a user