OOPed everything a little more.

This commit is contained in:
The Wobbler 2024-12-22 19:42:48 +01:00
parent 19b6f4dcaa
commit 8811ba7ab4
5 changed files with 113 additions and 69 deletions

View file

@ -113,16 +113,6 @@ class Player:
self.app.gui_communication.on_track_start()
def toggle_playing(self):
if self.playing and self.paused:
self.unpause()
elif self.playing:
self.pause()
else:
self.start_playing()
def stop(self):
self.music_channel.stop()
self.track_progress.stop()