[snap] fix: not showing 'API is out' popup when there is no internet connection

This commit is contained in:
Vinicius Moreira
2019-10-24 14:52:25 -03:00
parent 97fe290bff
commit c323ed125b
6 changed files with 15 additions and 11 deletions

View File

@@ -248,7 +248,7 @@ class FlatpakManager(SoftwareManager):
return updates
def list_warnings(self) -> List[str]:
def list_warnings(self, internet_available: bool) -> List[str]:
if flatpak.is_installed():
if not flatpak.has_remotes_set():
return [self.i18n['flatpak.notification.no_remotes']]