Added 'dismiss' link and logic for removing the item from the dialog

CURA-7090
This commit is contained in:
Dimitriovski 2020-01-10 16:48:45 +01:00
parent e5f464f7e7
commit c86cc3ae5a
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
3 changed files with 47 additions and 3 deletions

View file

@ -556,6 +556,11 @@ class Toolbox(QObject, Extension):
populated += 1
return populated == len(self._server_response_data.items())
@pyqtSlot(str)
def dismissIncompatiblePackage(self, package_id):
print("---in toolbox: %s" % package_id)
self._models["subscribed_packages"].setDismiss(package_id)
# Make API Calls
# --------------------------------------------------------------------------
def _makeRequestByType(self, request_type: str) -> None: