mirror of
https://github.com/lutris/lutris
synced 2024-09-05 23:46:21 +00:00
Improve year sorting
This commit is contained in:
parent
6cf55e7813
commit
a5e3ad5281
|
@ -370,7 +370,11 @@ class LutrisWindow(Gtk.ApplicationWindow,
|
|||
# Users may have obsolete view_sorting settings, so
|
||||
# we must tolerate them. We treat them all as blank.
|
||||
value = value or sort_defaults.get(self.view_sorting, "")
|
||||
|
||||
if self.view_sorting == "year":
|
||||
contains_year = bool(value)
|
||||
if self.view_reverse_order:
|
||||
contains_year = not contains_year
|
||||
value = [contains_year, value]
|
||||
if self.view_sorting_installed_first:
|
||||
# We want installed games to always be first, even in
|
||||
# a descending sort.
|
||||
|
|
Loading…
Reference in a new issue