当前为最新版本通知修复,报错格式化
This commit is contained in:
@@ -2353,7 +2353,7 @@ class Main(QWidget):
|
|||||||
QMessageBox.critical(
|
QMessageBox.critical(
|
||||||
self.ui,
|
self.ui,
|
||||||
"错误",
|
"错误",
|
||||||
f"获取版本信息时出错: {e}",
|
f"获取版本信息时出错:\n{e}",
|
||||||
)
|
)
|
||||||
return None
|
return None
|
||||||
version_remote = response.json()
|
version_remote = response.json()
|
||||||
@@ -2384,11 +2384,8 @@ class Main(QWidget):
|
|||||||
self.updater.ui.show()
|
self.updater.ui.show()
|
||||||
elif main_version_remote > main_version_current:
|
elif main_version_remote > main_version_current:
|
||||||
self.update_main()
|
self.update_main()
|
||||||
if not (
|
else:
|
||||||
updater_version_remote > updater_version_current
|
self.push_notification("已是最新版本~", " ", " ", 10)
|
||||||
or main_version_remote > main_version_current
|
|
||||||
):
|
|
||||||
self.push_notification("已是最新版本~", " ", " ", 10)
|
|
||||||
|
|
||||||
def update_main(self):
|
def update_main(self):
|
||||||
subprocess.Popen(
|
subprocess.Popen(
|
||||||
|
|||||||
Reference in New Issue
Block a user