From 3ffe532779b61191f3085c66b2f4913086633644 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Thu, 29 Sep 2022 22:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D7z=E8=A7=A3=E5=8E=8B=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mainwindow.py | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/mainwindow.py b/mainwindow.py index dff6e96..3fbd250 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -169,8 +169,8 @@ class Runexebutton_threading(QtCore.QThread): wineUsingOption = "" if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") if setting["TerminalOpen"]: @@ -290,8 +290,8 @@ def make_desktop_on_launcher(): wineUsingOption = "" if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") if o1.currentText() == "基于 exagear 的 deepin-wine6-stable" or o1.currentText() == "基于 box86 的 deepin-wine6-stable": @@ -352,8 +352,8 @@ def make_desktop_on_desktop(): wineUsingOption = "" if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") if not os.path.exists(get_desktop_path()): @@ -479,8 +479,8 @@ class RunWineProgramThread(QtCore.QThread): wineUsingOption = "" if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") if setting["TerminalOpen"]: @@ -543,8 +543,8 @@ class RunWinetricksThread(QtCore.QThread): wineUsingOption = "" if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") if setting["TerminalOpen"]: @@ -576,8 +576,8 @@ def RunWinetricks(): return if o1.currentText() == "基于 box86 的 deepin-wine6-stable" or o1.currentText() == "基于 exagear 的 deepin-wine6-stable": if not os.path.exists(f"{programPath}/dlls-arm"): - if os.system(f"7z x \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dlls-arm.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dlls-arm.7z") returnText.setText("") @@ -643,8 +643,8 @@ def InstallMSXML(): def InstallDXVK(): if not os.path.exists(f"{programPath}/dxvk"): - if os.system(f"7z x \"{programPath}/dxvk.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dxvk.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dxvk.7z") if e1.currentText() == "": @@ -659,8 +659,8 @@ def InstallDXVK(): def UninstallDXVK(): if not os.path.exists(f"{programPath}/dxvk"): - if os.system(f"7z x \"{programPath}/dxvk.7z\" -o\"{programPath}\""): - QtWidgets.QMessageBox(widget, "错误", "无法解压资源") + if os.system(f"7z x -y \"{programPath}/dxvk.7z\" -o\"{programPath}\""): + QtWidgets.QMessageBox.critical(widget, "错误", "无法解压资源") return os.remove(f"{programPath}/dxvk.7z") if e1.currentText() == "":