This commit is contained in:
kramo
2023-04-17 22:32:28 +02:00
parent bc0d33f966
commit 741245b415
5 changed files with 35 additions and 72 deletions

View File

@@ -101,9 +101,7 @@ class Game(Gtk.Box):
self.app.quit()
def toggle_hidden(self):
data = json.loads(
(self.win.games_dir / f"{self.game_id}.json").read_text("utf-8")
)
data = json.load((self.win.games_dir / f"{self.game_id}.json").open())
data["hidden"] = not data["hidden"]