This commit is contained in:
kramo
2023-04-18 19:07:49 +02:00
parent f8bb111939
commit bc9192e83b
12 changed files with 144 additions and 183 deletions

View File

@@ -22,8 +22,8 @@ from pathlib import Path
from gi.repository import Adw, Gtk
from .create_dialog import create_dialog
from .game import Game
from .save_cover import resize_cover, save_cover
from .save_game import save_game
from .steamgriddb import SGDBSave
@@ -56,7 +56,7 @@ class Importer:
def save_game(self, values=None, cover_path=None):
if values:
save_game(self.win, values)
Game(self.win, values).save()
if cover_path:
save_cover(
@@ -66,7 +66,7 @@ class Importer:
self.games.add((values["game_id"], values["name"]))
self.games_no += 1
if "blacklisted" in values:
if values.get("blacklisted"):
self.games_no -= 1
self.queue -= 1