Added the mechanism to dismiss all Incompatible packages when the Compatibility Dialog is closed

CURA-7090
This commit is contained in:
Dimitriovski 2020-01-24 13:51:49 +01:00
parent ae494110ba
commit 7ee8270b2e
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
2 changed files with 8 additions and 3 deletions

View file

@ -36,5 +36,7 @@ class DiscrepanciesPresenter(QObject):
def _onConfirmClicked(self, model: SubscribedPackagesModel) -> None:
# For now, all compatible packages presented to the user should be installed.
# Later, we might remove items for which the user unselected the package
if model.getIncompatiblePackages():
self._package_manager.dismissAllIncompatiblePackages(model.getIncompatiblePackages())
model.setItems(model.getCompatiblePackages())
self.packageMutations.emit(model)
self.packageMutations.emit(model) # #### proveri sho e ova???