1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

Possibly fix /playmode bug (#51)

This commit is contained in:
Steffo 2019-05-31 12:31:51 +02:00
parent 673703c0ae
commit dfa2310f06

View file

@ -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):