mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-15 08:53:53 +08:00
.
This commit is contained in:
parent
d0751b1596
commit
404906c4cc
@ -124,14 +124,14 @@ def versioncheckthread(self):
|
||||
self.progresssignal.emit("……", 0)
|
||||
if not x:
|
||||
continue
|
||||
self.versiontextsignal.emit(("获取中")) # ,'',url,url))
|
||||
self.versiontextsignal.emit("...") # ,'',url,url))
|
||||
_version = getvesionmethod()
|
||||
|
||||
if _version is None:
|
||||
sversion = "获取失败"
|
||||
else:
|
||||
sversion = _version[0]
|
||||
self.versiontextsignal.emit(wraplink(sversion))
|
||||
self.versiontextsignal.emit(sversion)
|
||||
version = winsharedutils.queryversion(sys.argv[0])
|
||||
need = (
|
||||
version
|
||||
@ -190,7 +190,7 @@ def wraplink(text: str):
|
||||
|
||||
def createversionlabel(self):
|
||||
|
||||
self.versionlabel = LLabel()
|
||||
self.versionlabel = QLabel()
|
||||
self.versionlabel.setOpenExternalLinks(True)
|
||||
self.versionlabel.setTextInteractionFlags(
|
||||
Qt.TextInteractionFlag.LinksAccessibleByMouse
|
||||
@ -208,7 +208,7 @@ def createversionlabel(self):
|
||||
|
||||
def versionlabelmaybesettext(self, x):
|
||||
try:
|
||||
self.versionlabel.setText((x))
|
||||
self.versionlabel.setText(wraplink(x))
|
||||
except:
|
||||
self.versionlabel_cache = x
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user