Use filter instead of search for looking up game folder to be deleted

This commit is contained in:
Mathieu Comandon 2021-10-08 13:11:28 -07:00
parent 836b14eb70
commit 1f015a9077

View file

@ -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)