Skip to content

Commit

Permalink
Fixed bug where deprecated game categories appear in Android version.
Browse files Browse the repository at this point in the history
  • Loading branch information
joeraz committed Mar 16, 2024
1 parent 572103b commit a6df894
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pysollib/kivy/selectgame.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ def __init__(self, app):
):
gg = []
for name, select_func in data:
if name is None or not filter(select_func, self.all_games_gi):
filtered = filter(select_func, self.all_games_gi)
if name is None or not filtered or len(list(filtered)) == 0:
continue
gg.append(SelectGameNode(None, _(name), select_func))
node = SelectGameNode(None, _(name), select_func)
if node:
gg.append(node)
g.append(gg)

def select_mahjongg_game(gi): return gi.si.game_type == GI.GT_MAHJONGG
Expand Down

0 comments on commit a6df894

Please sign in to comment.