mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Implement UX design for maketplace license dialog
cura 8587
This commit is contained in:
parent
0cc9d8db68
commit
4848c474e8
5 changed files with 17 additions and 46 deletions
|
@ -136,9 +136,8 @@ class PackageList(ListModel):
|
|||
|
||||
canInstallChanged = pyqtSignal(str, bool)
|
||||
|
||||
def _openLicenseDialog(self, plugin_name: str, license_content: str, icon_url: str) -> None:
|
||||
def _openLicenseDialog(self, plugin_name: str, license_content: str) -> None:
|
||||
Logger.debug(f"Prompting license for {plugin_name}")
|
||||
self._license_model.setIconUrl(icon_url)
|
||||
self._license_model.setPackageName(plugin_name)
|
||||
self._license_model.setLicenseText(license_content)
|
||||
self._license_dialog.show()
|
||||
|
@ -180,8 +179,7 @@ class PackageList(ListModel):
|
|||
# Open actual dialog
|
||||
package = self.getPackageModel(package_id)
|
||||
plugin_name = package.displayName
|
||||
icon_url = package.iconUrl
|
||||
self._openLicenseDialog(plugin_name, license_content, icon_url)
|
||||
self._openLicenseDialog(plugin_name, license_content)
|
||||
else:
|
||||
# Otherwise continue the installation
|
||||
self._install(package_id, package_path, update)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue