From f26e6acd6e4619835741a700ffff800d051bc9b1 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Thu, 10 Oct 2019 12:56:49 -0300 Subject: [PATCH] fix: snaps -> not retrieving API data while searching --- bauh/gems/snap/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bauh/gems/snap/model.py b/bauh/gems/snap/model.py index b8a3d3b8..1f4236c2 100644 --- a/bauh/gems/snap/model.py +++ b/bauh/gems/snap/model.py @@ -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: