[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

@@ -710,7 +710,7 @@ class ArchManager(SoftwareManager):
installed = self.read_installed(disk_loader=None, internet_available=internet_available).installed
return [PackageUpdate(p.id, p.latest_version, 'aur') for p in installed if p.update]
def list_warnings(self) -> List[str]:
def list_warnings(self, internet_available: bool) -> List[str]:
warnings = []
if self.arch_distro: