diff --git a/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml b/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml index 32b4da4823..84f69d8d4e 100644 --- a/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml +++ b/plugins/Toolbox/resources/qml/dialogs/CompatibilityDialog.qml @@ -125,26 +125,6 @@ UM.Dialog{ color: UM.Theme.getColor("text") elide: Text.ElideRight } - UM.TooltipArea - { - width: childrenRect.width; - height: childrenRect.height; - text: catalog.i18nc("@info:tooltip", "Dismisses the package and won't be shown in this dialog anymore") - anchors.right: parent.right - anchors.verticalCenter: packageIcon.verticalCenter - Label - { - text: "(Dismiss)" - font: UM.Theme.getFont("small") - color: UM.Theme.getColor("text") - MouseArea - { - cursorShape: Qt.PointingHandCursor - anchors.fill: parent - onClicked: handler.dismissIncompatiblePackage(subscribedPackagesModel, model.package_id) - } - } - } } } } diff --git a/plugins/Toolbox/src/CloudSync/DiscrepanciesPresenter.py b/plugins/Toolbox/src/CloudSync/DiscrepanciesPresenter.py index 78587117a0..d5c6e38b85 100644 --- a/plugins/Toolbox/src/CloudSync/DiscrepanciesPresenter.py +++ b/plugins/Toolbox/src/CloudSync/DiscrepanciesPresenter.py @@ -28,11 +28,6 @@ class DiscrepanciesPresenter(QObject): assert self._dialog self._dialog.accepted.connect(lambda: self._onConfirmClicked(model)) - @pyqtSlot("QVariant", str) - def dismissIncompatiblePackage(self, model: SubscribedPackagesModel, package_id: str) -> None: - model.dismissPackage(package_id) # update the model to update the view - self._package_manager.dismissPackage(package_id) # adds this package_id as dismissed in the user config file - 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 diff --git a/plugins/Toolbox/src/CloudSync/SubscribedPackagesModel.py b/plugins/Toolbox/src/CloudSync/SubscribedPackagesModel.py index dc684a11a7..614d397d91 100644 --- a/plugins/Toolbox/src/CloudSync/SubscribedPackagesModel.py +++ b/plugins/Toolbox/src/CloudSync/SubscribedPackagesModel.py @@ -37,13 +37,6 @@ class SubscribedPackagesModel(ListModel): return True return False - @pyqtSlot() - def dismissPackage(self, package_id: str) -> None: - package = self.find(key="package_id", value=package_id) - if package != -1: # find() returns -1 if it doesn't finds what is looking for - self.setProperty(package, property="is_dismissed", value=True) - Logger.debug("Package {} has been dismissed".format(package_id)) - def addDiscrepancies(self, discrepancy: List[str]) -> None: self._discrepancies = discrepancy