Daniel Brötzmann pushed to branch mainwindow at gajim / gajim
Commits:
73b4ef66 by Daniel Brötzmann at 2021-02-23T19:05:52+01:00
ChatList: Improve sorting
- - - - -
1 changed file:
- gajim/gtk/chat_list.py
Changes:
=====================================
gajim/gtk/chat_list.py
=====================================
@@ -126,6 +126,9 @@ def _header_func(row, before):
@staticmethod
def _sort_func(row1, row2):
+ if row1.is_pinned and row2.is_pinned:
+ # Don’t move pinned rows to top
+ return 0
if row1.is_pinned > row2.is_pinned:
return -1
if row2.is_pinned > row1.is_pinned:
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/73b4ef66c00999d0fa172fb173bfcce515ec5f4e
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/73b4ef66c00999d0fa172fb173bfcce515ec5f4e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits