1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Sorting of favorite games.

This commit is contained in:
Joe R 2023-12-19 21:59:58 -05:00
parent dda8348806
commit f190b3d30e

View file

@ -1268,6 +1268,11 @@ class PysolMenubarTkCommon:
gi = self.app.getGameInfo(id)
if gi:
games.append(gi)
def sort_func(gi):
return gi.name
games.sort(key=sort_func)
self.updateGamesMenu(submenu, games)
state = self._getEnabledState
in_favor = self.app.game.id in gameids