def _createProgressMessage(self) -> Message: return Message(i18n_catalog.i18nc("@info:generic", "Syncing..."), lifetime=0, use_inactivity_timer=False, progress=0.0, title=i18n_catalog.i18nc( "@info:title", "Changes detected from your Ultimaker account", ))
def _onDownloadFinished(self, success_items: Dict[str, Dict[str, str]], error_items: List[str]) -> None: if error_items: message = i18n_catalog.i18nc("@info:generic", "{} plugins failed to download".format(len(error_items))) self._showErrorMessage(message) plugin_path = cast(str, PluginRegistry.getInstance().getPluginPath(self.getPluginId())) self._license_presenter.present(plugin_path, success_items)
def _onDownloadFinished(self, success_items: Dict[str, Dict[str, str]], error_items: List[str]) -> None: """Called when a set of packages have finished downloading :param success_items:: Dict[package_id, Dict[str, str]] :param error_items:: List[package_id] """ if error_items: message = i18n_catalog.i18nc( "@info:generic", "{} plugins failed to download".format(len(error_items))) 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)