fixed bug with playing without selecting a song
This commit is contained in:
1 parent
2fe525d0d6
commit
3eab7260e6
2 files changed
+5
-9
No files matched your search
@@ -326,6 +326,9 @@ class TextualSubpyPlayer(App):
|
||||
self.play_pause_song()
|
||||
|
||||
def play_pause_song(self) -> None:
|
||||
if not self.currently_playing:
|
||||
return None
|
||||
|
||||
if self.playing:
|
||||
self.place = pygame.mixer.music.get_pos()
|
||||
pygame.mixer.music.pause()
|
||||
|
||||
Reference in new issue
Block a user