Move run_command into the game class

This commit is contained in:
kramo
2023-03-24 23:21:50 +01:00
parent 6b103c996b
commit ecceaabff1
4 changed files with 18 additions and 44 deletions

View File

@@ -34,7 +34,6 @@ from .create_details_window import create_details_window
from .get_games import get_games
from .heroic_parser import heroic_parser
from .preferences import PreferencesWindow
from .run_command import run_command
from .save_games import save_games
from .steam_parser import steam_parser
from .toggle_hidden import toggle_hidden
@@ -158,7 +157,7 @@ class CartridgesApplication(Adw.Application):
data["last_played"] = int(time.time())
save_games({game_id: data})
run_command(self.win.games[self.win.active_game_id].executable)
self.win.games[game_id].launch()
self.win.update_games([game_id])