fix: snaps -> not retrieving API data while searching

This commit is contained in:
Vinicius Moreira
2019-10-10 12:56:49 -03:00
parent 6023075b65
commit f26e6acd6e

View File

@@ -47,7 +47,7 @@ class SnapApplication(SoftwarePackage):
return self.get_default_icon_path()
def is_application(self) -> bool:
return self.has_apps_field is None or self.has_apps_field and self.name.lower() not in KNOWN_RUNTIME_NAMES
return not self.installed or ((self.has_apps_field is None or self.has_apps_field) and self.name.lower() not in KNOWN_RUNTIME_NAMES)
def _name_starts_with(self, words: set):
for word in words: