mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-07-16 10:32:23 +08:00
优化公告链接打开
This commit is contained in:
parent
800c523935
commit
a4e8b17ac5
@ -2083,6 +2083,10 @@ def GetNewInformation():
|
|||||||
global webInformation
|
global webInformation
|
||||||
if bad:
|
if bad:
|
||||||
webInformation = QtWidgets.QTextBrowser()
|
webInformation = QtWidgets.QTextBrowser()
|
||||||
|
webInformation.anchorClicked.connect(OpenUrl)
|
||||||
|
webInformation.setOpenLinks(False)
|
||||||
|
webInformation.setOpenExternalLinks(False)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
webInformation = QtWebEngineWidgets.QWebEngineView()
|
webInformation = QtWebEngineWidgets.QWebEngineView()
|
||||||
webInformation.setHtml(text)
|
webInformation.setHtml(text)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user