Link opening sync all window to the button that should open it

This is a new button just merged in from the Master branch. With the window implemented, we can now properly open it.

Contributes to issue CURA-8609.
This commit is contained in:
Ghostkeeper 2021-10-06 14:25:12 +02:00
parent b98da6b538
commit 5db964aed1
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -83,8 +83,7 @@ class MaterialManagementModel(QObject):
def _onSyncMaterialsMessageActionTriggered(self, sync_message: Message, sync_message_action: str): def _onSyncMaterialsMessageActionTriggered(self, sync_message: Message, sync_message_action: str):
if sync_message_action == "sync": if sync_message_action == "sync":
QDesktopServices.openUrl(QUrl("https://example.com/openSyncAllWindow")) self.openSyncAllWindow()
# self.openSyncAllWindow()
sync_message.hide() sync_message.hide()
elif sync_message_action == "learn_more": elif sync_message_action == "learn_more":
QDesktopServices.openUrl(QUrl("https://support.ultimaker.com/hc/en-us/articles/360013137919?utm_source=cura&utm_medium=software&utm_campaign=sync-material-printer-message")) QDesktopServices.openUrl(QUrl("https://support.ultimaker.com/hc/en-us/articles/360013137919?utm_source=cura&utm_medium=software&utm_campaign=sync-material-printer-message"))