From 884a95320751fef0b8925fd5d9702a6ee5ef2a7e Mon Sep 17 00:00:00 2001 From: SiYuan <863909694@qq.com> Date: Sat, 2 Mar 2024 23:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0exe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/mainview.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/app/ui/mainview.py b/app/ui/mainview.py index a02bb73..5548246 100644 --- a/app/ui/mainview.py +++ b/app/ui/mainview.py @@ -463,15 +463,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow, QCursorGif): error_box.exec_() def update_(self, url,is_update_online): - if is_update_online: - print('更新软件', url) - exe_path = r'./update.exe' - self.close() - if os.path.exists(exe_path): - subprocess.run(f'start /B {exe_path} --url {url}', shell=True, check=True) - sys.exit() - else: - QDesktopServices.openUrl(QUrl("https://memotrace.cn/")) + QDesktopServices.openUrl(QUrl("https://memotrace.cn/")) def about(self):