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:
parent
572103b2c4
commit
a6df89489a
1 changed files with 5 additions and 2 deletions
|
@ -94,9 +94,12 @@ class SelectGameData(SelectDialogTreeData):
|
||||||
):
|
):
|
||||||
gg = []
|
gg = []
|
||||||
for name, select_func in data:
|
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
|
continue
|
||||||
gg.append(SelectGameNode(None, _(name), select_func))
|
node = SelectGameNode(None, _(name), select_func)
|
||||||
|
if node:
|
||||||
|
gg.append(node)
|
||||||
g.append(gg)
|
g.append(gg)
|
||||||
|
|
||||||
def select_mahjongg_game(gi): return gi.si.game_type == GI.GT_MAHJONGG
|
def select_mahjongg_game(gi): return gi.si.game_type == GI.GT_MAHJONGG
|
||||||
|
|
Loading…
Add table
Reference in a new issue