X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d3d307bdd570c94556dffb9fb74a10621e6a2d2d..86fda4cfacce19566a0557375960d507e720afb6:/lib/python/Screens/Satconfig.py diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index a9bad427..7d449658 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -200,6 +200,7 @@ class NimSetup(Screen, ConfigListScreen): x[1].value = int(mktime(dt.timetuple())) x[1].save() nimmanager.sec.update() + self.saveAll() def fillListWithAdvancedSatEntrys(self, Sat): currLnb = self.nimConfig.advanced.lnb[int(Sat.lnb.value)] @@ -291,7 +292,6 @@ class NimSetup(Screen, ConfigListScreen): self.unconfed_sats = old_configured_sats - new_configured_sats self.satpos_to_remove = None self.deleteConfirmed(False) - self.saveAll() def deleteConfirmed(self, confirmed): if confirmed: @@ -356,6 +356,16 @@ class NimSetup(Screen, ConfigListScreen): for x in self["config"].list: x[1].save() + def cancelConfirm(self, result): + if not result: + return + + for x in self["config"].list: + x[1].cancel() + # we need to call saveAll to reset the connectedTo choices + self.saveAll() + self.close() + class NimSelection(Screen): def __init__(self, session): Screen.__init__(self, session)