1
0
Fork 0
mirror of synced 2024-06-29 19:51:02 +12:00

Fix bug with launch command

This commit is contained in:
Dummerle 2021-11-05 19:01:35 +01:00
parent 8627484097
commit eda2bb038f
No known key found for this signature in database
GPG key ID: AB68CC59CA39F2F1

View file

@ -56,8 +56,8 @@ class MainWindow(QMainWindow):
file.close()
if action.startswith("launch"):
game = action.replace("launch ", "").replace("\n", "")
if game in self.tab_widget.games_tab.default_widget.game_list.widgets.keys():
self.tab_widget.games_tab.default_widget.game_list.widgets[game][1].launch()
if self.core.is_installed(game):
self.tab_widget.games_tab.widgets[game][1].launch()
else:
logger.info(f"Could not find {game} in Games")