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

Fixed bug where deprecated game categories appear in Android version.

This commit is contained in:
Joe R 2024-03-15 20:32:29 -04:00
parent 572103b2c4
commit a6df89489a

View file

@ -94,9 +94,12 @@ class SelectGameData(SelectDialogTreeData):
):
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