Skip to content

Commit

Permalink
Sorting of favorite games.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Dec 20, 2023
1 parent dda8348 commit f190b3d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pysollib/ui/tktile/menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,11 @@ def updateFavoriteGamesMenu(self):
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
Expand Down

0 comments on commit f190b3d

Please sign in to comment.