Do not start Sync flow when there are no compatible packages to sync

(and remove unused import)

CURA-6983
This commit is contained in:
Nino van Hooff 2020-01-16 14:44:37 +01:00
parent 6763bed95f
commit 46133fe2f3

View file

@ -53,6 +53,9 @@ class CloudPackageChecker(QObject):
self._model.addDiscrepancies(package_discrepancy)
self._model.initialize()
if not self._model.hasCompatiblePackages:
return None
if package_discrepancy:
self._handlePackageDiscrepancies()