mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
fixed sorting
This commit is contained in:
parent
c483f8ff0b
commit
ed41297dee
@ -2338,7 +2338,7 @@ class PlaylistPopover(Gtk.Popover):
|
|||||||
def _refresh(self):
|
def _refresh(self):
|
||||||
for row in self._list_box.get_children():
|
for row in self._list_box.get_children():
|
||||||
row.destroy()
|
row.destroy()
|
||||||
for playlist in sorted(self._client.listplaylists(), key=lambda x: x["playlist"]):
|
for playlist in sorted(self._client.listplaylists(), key=lambda x: locale.strxfrm(x["playlist"])):
|
||||||
row=PlaylistRow(playlist["playlist"], self._client)
|
row=PlaylistRow(playlist["playlist"], self._client)
|
||||||
self._list_box.insert(row, -1)
|
self._list_box.insert(row, -1)
|
||||||
row.show_all()
|
row.show_all()
|
||||||
|
Loading…
Reference in New Issue
Block a user