fixed bug where the play progress of the last song sometimes was carried over to the next one

This commit is contained in:
Sumner Evans
2020-03-28 22:55:24 -06:00
parent 7c3d870105
commit d3b673fd9b

View File

@@ -1009,7 +1009,11 @@ class SublimeMusicApp(Gtk.Application):
on_song_download_complete=on_song_download_complete, on_song_download_complete=on_song_download_complete,
) )
self.player.play_media(uri, self.state.song_progress, song) self.player.play_media(
uri,
0 if reset else self.state.song_progress,
song,
)
self.state.playing = True self.state.playing = True
self.update_window() self.update_window()