[flatpak] fix update-check for 1.5.x | [appimage] tray update notifications

This commit is contained in:
Vinicius Moreira
2019-10-11 19:12:19 -03:00
parent c6cdfe30d0
commit 391bac7943
3 changed files with 16 additions and 3 deletions

View File

@@ -100,7 +100,11 @@ class FlatpakManager(SoftwareManager):
for app_json in installed:
model = self._map_to_model(app_json=app_json, installed=True,
disk_loader=disk_loader, internet=internet_available)
model.update = app_json['ref'] in updates[0] if updates else None
if version >= '1.5.0':
model.update = '{}/{}'.format(app_json['id'], app_json['branch']) in updates[0] if updates else None
else:
model.update = app_json['ref'] in updates[0] if updates else None
models.append(model)
return SearchResult(models, None, len(models))