fix: Fixed app not closing after update
This commit is contained in:
parent
21f1d9fc01
commit
0c450328b3
2 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 0.8.x
|
## 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
|
### 0.8.2: Patch for New PyPiUpdater Version
|
||||||
- Updated to support **PyPiUpdater 0.4.0**.
|
- Updated to support **PyPiUpdater 0.4.0**.
|
||||||
- Now stores version information locally, preventing an "unknown" state on the first updater launch.
|
- Now stores version information locally, preventing an "unknown" state on the first updater launch.
|
||||||
|
|
|
@ -490,7 +490,7 @@ class UpdaterWindow(QMainWindow, Ui_Updater_Window):
|
||||||
|
|
||||||
def define_gui_interaction(self):
|
def define_gui_interaction(self):
|
||||||
"""Setup UI interactions."""
|
"""Setup UI interactions."""
|
||||||
if self.optimalab35_localversion == "0.0.1":
|
if self.optimalab35_localversion == "0.0.2":
|
||||||
self.dev_mode()
|
self.dev_mode()
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
@ -583,7 +583,8 @@ class UpdaterWindow(QMainWindow, Ui_Updater_Window):
|
||||||
msg.exec()
|
msg.exec()
|
||||||
|
|
||||||
# Restart the application after user clicks "OK"
|
# Restart the application after user clicks "OK"
|
||||||
self.ppu_ol35.restart_program()
|
#self.ppu_ol35.restart_program()
|
||||||
|
self.restart_program()
|
||||||
|
|
||||||
def restart_program(self):
|
def restart_program(self):
|
||||||
"""Restart the Python program after an update."""
|
"""Restart the Python program after an update."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue