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)
|
self.progresssignal.emit("……", 0)
|
||||||
if not x:
|
if not x:
|
||||||
continue
|
continue
|
||||||
self.versiontextsignal.emit(("获取中")) # ,'',url,url))
|
self.versiontextsignal.emit("...") # ,'',url,url))
|
||||||
_version = getvesionmethod()
|
_version = getvesionmethod()
|
||||||
|
|
||||||
if _version is None:
|
if _version is None:
|
||||||
sversion = "获取失败"
|
sversion = "获取失败"
|
||||||
else:
|
else:
|
||||||
sversion = _version[0]
|
sversion = _version[0]
|
||||||
self.versiontextsignal.emit(wraplink(sversion))
|
self.versiontextsignal.emit(sversion)
|
||||||
version = winsharedutils.queryversion(sys.argv[0])
|
version = winsharedutils.queryversion(sys.argv[0])
|
||||||
need = (
|
need = (
|
||||||
version
|
version
|
||||||
@ -190,7 +190,7 @@ def wraplink(text: str):
|
|||||||
|
|
||||||
def createversionlabel(self):
|
def createversionlabel(self):
|
||||||
|
|
||||||
self.versionlabel = LLabel()
|
self.versionlabel = QLabel()
|
||||||
self.versionlabel.setOpenExternalLinks(True)
|
self.versionlabel.setOpenExternalLinks(True)
|
||||||
self.versionlabel.setTextInteractionFlags(
|
self.versionlabel.setTextInteractionFlags(
|
||||||
Qt.TextInteractionFlag.LinksAccessibleByMouse
|
Qt.TextInteractionFlag.LinksAccessibleByMouse
|
||||||
@ -208,7 +208,7 @@ def createversionlabel(self):
|
|||||||
|
|
||||||
def versionlabelmaybesettext(self, x):
|
def versionlabelmaybesettext(self, x):
|
||||||
try:
|
try:
|
||||||
self.versionlabel.setText((x))
|
self.versionlabel.setText(wraplink(x))
|
||||||
except:
|
except:
|
||||||
self.versionlabel_cache = x
|
self.versionlabel_cache = x
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user