This commit is contained in:
kramo
2023-02-01 17:26:55 +01:00
parent 7c0974de90
commit 5e373bd63d
7 changed files with 14 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ def toggle_hidden(game):
import os, json
games_dir = os.path.join(os.environ.get("XDG_DATA_HOME"), "cartridges", "games")
if os.path.exists(games_dir) == False:
if not os.path.exists(games_dir):
return
file = open(os.path.join(games_dir, game + ".json"), "r")