Skip to content

Commit

Permalink
feat: implement nowplaying.on_stop
Browse files Browse the repository at this point in the history
  • Loading branch information
mokurin000 committed Jan 11, 2024
1 parent 0ed5733 commit a4389d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions feeluown/nowplaying/nowplaying.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ async def on_next(self):
async def on_previous(self):
self._app.playlist.previous()

def on_stop(self):
self._app.player.stop()

def on_loop_status(self, status: aionp.LoopStatus):
if status == aionp.LoopStatus.Playlist:
self._app.playlist.playback_mode = PlaybackMode.loop
Expand Down

0 comments on commit a4389d6

Please sign in to comment.