From 6196d4a7a41a5f995fd8d58f88456970300b70e8 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Sat, 21 Jan 2023 09:34:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E5=85=B3=E4=BA=8E=E7=AA=97?= =?UTF-8?q?=E5=8F=A3=E6=96=B0=E5=A2=9E=20GPLV3=20=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- information.json | 3 ++- mainwindow.py | 23 ++++++++++++++++++++--- 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/information.json b/information.json index 8f1d162..fea108a 100755 --- a/information.json +++ b/information.json @@ -44,7 +44,8 @@ "18、UEngine 打包器打包的 deb 不再指定 deepin-elf-verify 依赖版本;", "19、“更多帮助”功能支持访问云端的帮助内容;", "20、更换程序接口;", - "21、优化菜单栏分类,菜单栏新增图标。", + "21、优化菜单栏分类,菜单栏新增图标;", + "22、程序关于窗口新增 GPLV3 协议显示。", "", "V1.8.3:", "※1、修复安装/打包程序时出现找不到图标的问题;", diff --git a/mainwindow.py b/mainwindow.py index 1e55a7f..c917f54 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -1755,6 +1755,20 @@ def showhelp(): def ChgTips(): HelpStr.setHtml(tips) + def ChgGPLV3(): + try: + with open(f"{programPath}/LICENSE", "r") as file: + things = file.read() + try: + HelpStr.setMarkdown(things) + except: + # 旧版 QT 不支持 Markdown + traceback.print_exc() + HelpStr.setText(things) + except: + traceback.print_exc() + HelpStr.setText(traceback.print_exc()) + def ChgAdmiration(): HelpStr.setHtml(f"""
赞赏要记得要添加备注“UEngine运行器”,然后后面接自己想要备注的内容或不写
![]()