fix: Add shutdown helper call and modify exit behavior in updater

This commit is contained in:
Vxrtrauter
2026-04-07 02:26:15 +02:00
parent ce2cd9cdd8
commit 912d9d8c00
2 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
from network.direct_download.handle import DirectDownloadHandle
from utils.general.shutdown import closehelper
from utils.logging.logs import consoleLog
from utils.data.state import state
from PySide6.QtCore import Qt
@@ -91,6 +92,7 @@ def download_update(assets: list):
progress.setValue(100)
QtWidgets.QApplication.processEvents()
closehelper()
subprocess.Popen([installer_path, "/VERYSILENT", "/SUPPRESSMSGBOXES", "/SP-", "/CLOSEAPPLICATIONS"])
time.sleep(1)
sys.exit(0)
os._exit(0)