mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Possibly fix /playmode bug (#51)
This commit is contained in:
parent
673703c0ae
commit
dfa2310f06
1 changed files with 2 additions and 1 deletions
|
@ -80,9 +80,10 @@ class Playlist(PlayMode):
|
|||
self.list.append(item)
|
||||
|
||||
def delete(self) -> None:
|
||||
if self.now_playing is not None:
|
||||
self.now_playing.delete()
|
||||
while self.list:
|
||||
self.list.pop(0).delete()
|
||||
self.now_playing.delete()
|
||||
|
||||
|
||||
class Pool(PlayMode):
|
||||
|
|
Loading…
Reference in a new issue