Commit 273bac1e authored by Jean Felder's avatar Jean Felder Committed by Marinus Schraal

player: Fix _on_repeat_mode_changed

Reset the sort function when the player goes into a linear
mode (RepeatMode.NONE or RepetMode.ALL).
I, RepeatMode.SONG, it does not matter.
parent 55daf930
......@@ -290,7 +290,7 @@ class PlayerPlaylist(GObject.GObject):
if self.props.repeat_mode == RepeatMode.SHUFFLE:
self._model.set_sort_func(
_wrap_list_store_sort_func(_shuffle_sort))
elif self.props.repeat_mode == RepeatMode.NONE:
elif self.props.repeat_mode in [RepeatMode.NONE, RepeatMode.ALL]:
self._model.set_sort_func(None)
@GObject.Property(type=int, flags=GObject.ParamFlags.READABLE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment