mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Use filter instead of search for looking up game folder to be deleted
This commit is contained in:
parent
836b14eb70
commit
1f015a9077
|
@ -36,7 +36,7 @@ class UninstallGameDialog(Dialog):
|
|||
|
||||
if not self.game.directory:
|
||||
self.folder_label.set_markup("No file will be deleted")
|
||||
elif len(get_games(searches={"directory": self.game.directory})) > 1:
|
||||
elif len(get_games(filters={"directory": self.game.directory})) > 1:
|
||||
self.folder_label.set_markup("The folder %s is used by other games and will be kept." % self.game.directory)
|
||||
elif is_removeable(self.game.directory):
|
||||
self.delete_button.set_sensitive(False)
|
||||
|
|
Loading…
Reference in a new issue