Don't show License Dialog when there is no License text

Contributes to CURA-8587
This commit is contained in:
Jelle Spijker 2021-12-16 10:34:08 +01:00
parent 020313da25
commit aa93186707
No known key found for this signature in database
GPG key ID: 6662DC033BE6B99A

View file

@ -171,7 +171,7 @@ class PackageList(ListModel):
package_path = self._to_install[package_id] package_path = self._to_install[package_id]
license_content = self._package_manager.getPackageLicense(package_path) license_content = self._package_manager.getPackageLicense(package_path)
if not update and license_content is not None: if not update and license_content is not None and license_content != "":
# If installation is not and update, and the packages contains a license then # If installation is not and update, and the packages contains a license then
# open dialog, prompting the using to accept the plugin license # open dialog, prompting the using to accept the plugin license
self._openLicenseDialog(package_id, license_content) self._openLicenseDialog(package_id, license_content)