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

@ -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."""