Skip to content

Commit

Permalink
[SoftwareUpdate] use human readable values
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Jan 13, 2025
1 parent 4a3a1ce commit 51ce7b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/python/Screens/SoftwareUpdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from Screens.ParentalControlSetup import ProtectedScreen
from Screens.Screen import Screen
from Screens.TextBox import TextBox
from Screens.Standby import TryQuitMainloop
from Screens.Standby import TryQuitMainloop, QUIT_REBOOT, QUIT_UPGRADE_PROGRAM
from Tools.BoundFunction import boundFunction
from Tools.Directories import isPluginInstalled

Expand Down Expand Up @@ -385,7 +385,7 @@ def startActualUpgrade(self, answer):
if (config.softwareupdate.autosettingsbackup.value and config.backupmanager.backuplocation.value) or (config.softwareupdate.autoimagebackup.value and config.imagemanager.backuplocation.value):
self.doAutoBackup()
else:
self.session.open(TryQuitMainloop, retvalue=42)
self.session.open(TryQuitMainloop, retvalue=QUIT_UPGRADE_PROGRAM)
self.close()

def modificationCallback(self, res):
Expand Down Expand Up @@ -419,7 +419,7 @@ def doAutoBackup(self, val=False):
elif config.softwareupdate.autoimagebackup.value and config.imagemanager.backuplocation.value and not self.ImageBackupDone:
self.doImageBackup()
else:
self.session.open(TryQuitMainloop, retvalue=42)
self.session.open(TryQuitMainloop, retvalue=QUIT_UPGRADE_PROGRAM)
self.close()

def showJobView(self, job):
Expand All @@ -446,5 +446,5 @@ def exit(self):

def exitAnswer(self, result):
if result is not None and result:
self.session.open(TryQuitMainloop, retvalue=2)
self.session.open(TryQuitMainloop, retvalue=QUIT_REBOOT)
self.close()

0 comments on commit 51ce7b2

Please sign in to comment.