From 72c1b4d10c7ece92a5f8e2ed7dfd6ad67f75f502 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Tue, 11 Feb 2020 13:34:17 +0100 Subject: Fix LicensePresenter: reset state when presenting licenses CURA-7200 --- plugins/Toolbox/src/CloudSync/SyncOrchestrator.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/Toolbox/src/CloudSync/SyncOrchestrator.py') diff --git a/plugins/Toolbox/src/CloudSync/SyncOrchestrator.py b/plugins/Toolbox/src/CloudSync/SyncOrchestrator.py index c24703bf92..34fdb40903 100644 --- a/plugins/Toolbox/src/CloudSync/SyncOrchestrator.py +++ b/plugins/Toolbox/src/CloudSync/SyncOrchestrator.py @@ -72,6 +72,8 @@ class SyncOrchestrator(Extension): self._showErrorMessage(message) plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath(self.getPluginId())) + self._license_presenter = self._license_presenter.resetCopy() + self._license_presenter.licenseAnswers.connect(self._onLicenseAnswers) self._license_presenter.present(plugin_path, success_items) # Called when user has accepted / declined all licenses for the downloaded packages -- cgit v1.2.3