Removed unnecessary function and a call to it. Added some typing.

CURA-7090
This commit is contained in:
Dimitriovski 2020-01-14 11:50:47 +01:00
parent 7359492e11
commit e8f22beb27
No known key found for this signature in database
GPG key ID: 4E62757E2B0D304D
2 changed files with 4 additions and 13 deletions

View file

@ -676,8 +676,7 @@ class Toolbox(QObject, Extension):
if package_discrepancy:
self._models["subscribed_packages"].addDiscrepancies(package_discrepancy)
self._models["subscribed_packages"].initialize()
self._models["subscribed_packages"].applyDismissedPackages(user_dismissed_packages)
Logger.log("d", "Discrepancy found between Cloud subscribed packages and Cura installed packages")
Logger.debug("Discrepancy found between Cloud subscribed packages and Cura installed packages")
sync_message = Message(i18n_catalog.i18nc(
"@info:generic",
"\nDo you want to sync material and software packages with your account?"),
@ -688,7 +687,6 @@ class Toolbox(QObject, Extension):
icon="",
description="Sync your Cloud subscribed packages to your local environment.",
button_align=Message.ActionButtonAlignment.ALIGN_RIGHT)
sync_message.actionTriggered.connect(self._onSyncButtonClicked)
sync_message.show()