mirror of
https://github.com/lutris/lutris
synced 2024-10-06 15:59:39 +00:00
Game might not always have a valid runner
This commit is contained in:
parent
28ae171029
commit
c21d70a190
|
@ -35,7 +35,10 @@ class UninstallGameDialog(GtkBuilderDialog):
|
|||
remove_contents_button = self.builder.get_object(
|
||||
'remove_contents_button'
|
||||
)
|
||||
default_path = self.game.runner.default_path
|
||||
try:
|
||||
default_path = self.game.runner.default_path
|
||||
except AttributeError:
|
||||
default_path = "/"
|
||||
if not is_removeable(self.game.directory, excludes=[default_path]):
|
||||
remove_contents_button.set_sensitive(False)
|
||||
path = self.game.directory or 'disk'
|
||||
|
|
Loading…
Reference in a new issue