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运行器”,然后后面接自己想要备注的内容或不写

@@ -1770,6 +1784,7 @@ def showhelp():
BtnAbout = QtWidgets.QPushButton("关于")
BtnDownN = QtWidgets.QPushButton("程序下载量")
BtnOpenN = QtWidgets.QPushButton("程序打开量")
+ BtnGPLV3 = QtWidgets.QPushButton("程序开源许可证")
BtnAdmiration = QtWidgets.QPushButton("赞赏(暂未开启)")
BtnAdmiration.setDisabled(True)
HelpStr = QtWidgets.QTextBrowser()
@@ -1790,6 +1805,7 @@ def showhelp():
BtnGongxian.clicked.connect(ChgCon)
BtnAbout.clicked.connect(ChgAbout)
BtnDownN.clicked.connect(Download)
+ BtnGPLV3.clicked.connect(ChgGPLV3)
BtnAdmiration.clicked.connect(ChgAdmiration)
BtnOpenN.clicked.connect(Open)
@@ -1801,9 +1817,10 @@ def showhelp():
helpLayout.addWidget(BtnGongxian, 3, 0, 1, 1)
helpLayout.addWidget(BtnDownN, 4, 0, 1, 1)
helpLayout.addWidget(BtnOpenN, 5, 0, 1, 1)
- helpLayout.addWidget(BtnAdmiration, 6, 0, 1, 1)
- helpLayout.addWidget(BtnAbout, 7, 0, 1, 1)
- helpLayout.addWidget(HelpStr, 0, 1, 9, 1)
+ helpLayout.addWidget(BtnGPLV3, 6, 0, 1, 1)
+ helpLayout.addWidget(BtnAdmiration, 7, 0, 1, 1)
+ helpLayout.addWidget(BtnAbout, 8, 0, 1, 1)
+ helpLayout.addWidget(HelpStr, 0, 1, 10, 1)
helpWidget.setLayout(helpLayout)
helpWindow.setCentralWidget(helpWidget)