fixed bug with playing without selecting a song

This commit is contained in:
JISAUAY committed 2025-01-24 12:02:21 -06:00
1 parent 2fe525d0d6
commit 3eab7260e6
2 files changed
+5 -9

No files matched your search

+3
View File
@@ -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()