Update python/pyplugin_installer/installer_data.py

Co-authored-by: nicogodet <39594821+nicogodet@users.noreply.github.com>
This commit is contained in:
Nyall Dawson 2021-06-01 16:06:40 +10:00
parent 00c7232f1c
commit 22cc4da6e9

View File

@ -332,7 +332,7 @@ class Repositories(QObject):
def fetchingInProgress(self) -> bool:
""" return True if fetching repositories is still in progress """
return any(v['state'] == Repositories.STATE_LOADING for _, v in self.mRepositories.items())
return any(v['state'] == Repositories.STATE_LOADING for v in self.mRepositories.values())
def killConnection(self, key: str):
""" kill the fetching on demand """