1
0
Fork 0
mirror of synced 2024-06-26 18:20:50 +12:00

Fix uninstall for third party launcher games (#200)

* Dont allow third party launcher games to be uninstalled

* Fix indentation
This commit is contained in:
aznd 2022-04-23 17:03:03 +02:00 committed by GitHub
parent 01a513d844
commit 87c3534da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,13 +118,14 @@ class BaseInstalledWidget(QGroupBox):
reload_image.triggered.connect(self.reload_image)
self.addAction(reload_image)
uninstall = QAction(self.tr("Uninstall"), self)
uninstall.triggered.connect(
lambda: self.signals.update_gamelist.emit([self.game.app_name])
if self.game_utils.uninstall_game(self.game.app_name)
else None
)
self.addAction(uninstall)
if self.igame is not None:
uninstall = QAction(self.tr("Uninstall"), self)
self.addAction(uninstall)
uninstall.triggered.connect(
lambda: self.signals.update_gamelist.emit([self.game.app_name])
if self.game_utils.uninstall_game(self.game.app_name)
else None
)
def reload_image(self):
utils.download_image(self.game, True)