Skip to content

fix: hide hyperlink when license path is invalid#621

Merged
mhduiy merged 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0519-fix-issue-361031
May 19, 2026
Merged

fix: hide hyperlink when license path is invalid#621
mhduiy merged 1 commit into
linuxdeepin:masterfrom
MyLeeJiEun:fork-from-master-0519-fix-issue-361031

Conversation

@MyLeeJiEun
Copy link
Copy Markdown
Contributor

  1. Add D.LicenseInfoProvider to check if the license path is valid
  2. Conditionally render the open-source software text with or without hyperlink
  3. Set textFormat to RichText or PlainText based on license path validity

Log: Hide the open-source software hyperlink in the about dialog when license path is invalid

fix: 许可证路径无效时隐藏超链接

  1. 添加 D.LicenseInfoProvider 检查许可证路径是否有效
  2. 根据许可证路径有效性决定是否渲染开源软件超链接
  3. 根据许可证路径有效性设置 textFormat 为 RichText 或 PlainText

Log: 关于对话框中许可证路径无效时隐藏开源软件超链接
PMS: BUG-361031

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @MyLeeJiEun, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@deepin-ci-robot
Copy link
Copy Markdown
Contributor

Hi @MyLeeJiEun. Thanks for your PR.

I'm waiting for a linuxdeepin member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

1. Add D.LicenseInfoProvider to check license path validity in
   AboutDialog
2. Only display open-source software text as hyperlink when license
   path is valid
3. Pass LicenseInfoProvider instance to LicenseDialog instead of
   license path string

Log: Fix open-source software acknowledgement text to only hyperlink
when license info is available

fix: 根据许可路径有效性条件显示超链接

1. 在关于对话框中添加 D.LicenseInfoProvider 检查许可路径有效性
2. 仅在许可路径有效时将开源软件文本显示为超链接
3. 将 LicenseInfoProvider 实例传递给许可对话框,替代路径字符串

Log: 修复开源软件致谢文本,仅在许可信息可用时显示为超链接
PMS: BUG-361031
@MyLeeJiEun MyLeeJiEun force-pushed the fork-from-master-0519-fix-issue-361031 branch from 4824c16 to 9e78761 Compare May 19, 2026 13:02
@deepin-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mhduiy, MyLeeJiEun

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@MyLeeJiEun
Copy link
Copy Markdown
Contributor Author

/merge

@deepin-bot
Copy link
Copy Markdown
Contributor

deepin-bot Bot commented May 19, 2026

This pr cannot be merged! (status: unstable)

@mhduiy mhduiy merged commit 8b648ac into linuxdeepin:master May 19, 2026
17 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants