优化公告链接打开

This commit is contained in:
gfdgd xi 2024-01-14 10:43:43 +08:00
parent 800c523935
commit a4e8b17ac5
2 changed files with 5 additions and 1 deletions

@ -759,7 +759,7 @@ make install -j4
```
## 请作者喝杯茶
如果您觉得 Wine 运行器对你有帮助,可以请作者喝杯茶
如果您觉得 Wine 运行器对你有帮助,可以请作者喝杯茶
<img src="Icon/QR/Wechat.png" width="200" />
<img src="Icon/QR/Alipay.jpg" width="200" />
<img src="Icon/QR/QQ.png" width="200" >

@ -2083,6 +2083,10 @@ def GetNewInformation():
global webInformation
if bad:
webInformation = QtWidgets.QTextBrowser()
webInformation.anchorClicked.connect(OpenUrl)
webInformation.setOpenLinks(False)
webInformation.setOpenExternalLinks(False)
else:
webInformation = QtWebEngineWidgets.QWebEngineView()
webInformation.setHtml(text)