fix: Fixed app not closing after update

This commit is contained in:
Mr Finchum 2025-01-31 17:42:02 +01:00
parent 21f1d9fc01
commit 0c450328b3
2 changed files with 6 additions and 2 deletions

View file

@ -1,6 +1,9 @@
# Changelog
## 0.8.x
### 0.8.3: Fix OptimaLab35 Not Closing After Update
- Fixed an issue where **OptimaLab35** would not close properly when updating, resulting in an unresponsive instance and multiple running processes.
### 0.8.2: Patch for New PyPiUpdater Version
- Updated to support **PyPiUpdater 0.4.0**.
- Now stores version information locally, preventing an "unknown" state on the first updater launch.

View file

@ -490,7 +490,7 @@ class UpdaterWindow(QMainWindow, Ui_Updater_Window):
def define_gui_interaction(self):
"""Setup UI interactions."""
if self.optimalab35_localversion == "0.0.1":
if self.optimalab35_localversion == "0.0.2":
self.dev_mode()
return
else:
@ -583,7 +583,8 @@ class UpdaterWindow(QMainWindow, Ui_Updater_Window):
msg.exec()
# Restart the application after user clicks "OK"
self.ppu_ol35.restart_program()
#self.ppu_ol35.restart_program()
self.restart_program()
def restart_program(self):
"""Restart the Python program after an update."""