aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens
diff options
context:
space:
mode:
authorAxel Buehning <axel.buehning@multimedia-labs.de>2006-05-11 10:40:48 +0000
committerAxel Buehning <axel.buehning@multimedia-labs.de>2006-05-11 10:40:48 +0000
commit940e359a595bf975b004c4e807090cce12e96dd1 (patch)
treef0e9cbd8ac98d7da23eb47982e6b718da67b379d /lib/python/Screens
parentb887d75af86b430552cc28ea5e37bf58bd557d4b (diff)
downloadenigma2-940e359a595bf975b004c4e807090cce12e96dd1.tar.gz
enigma2-940e359a595bf975b004c4e807090cce12e96dd1.zip
add confirmation dialog to harddisk init
Diffstat (limited to 'lib/python/Screens')
-rw-r--r--lib/python/Screens/HarddiskSetup.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/python/Screens/HarddiskSetup.py b/lib/python/Screens/HarddiskSetup.py
index 582b5ba8..a6e14cb8 100644
--- a/lib/python/Screens/HarddiskSetup.py
+++ b/lib/python/Screens/HarddiskSetup.py
@@ -49,11 +49,17 @@ class HarddiskSetup(Screen):
self.session.open(MessageBox, _("Unable to initialize harddisk.\nPlease refer to the user manual.\nError: ") + str(self.hdd.errorList[0 - result]), MessageBox.TYPE_ERROR)
else:
self.close()
-
+
def hddInitialize(self):
+ self.session.openWithCallback(self.hddInitConfirmed, MessageBox, _("Do you really want to initialize the harddisk?\nAll data on the disk will be lost!"))
+
+ def hddInitConfirmed(self, confirmed):
+ if not confirmed:
+ return
+
print "this will start the initialize now!"
self.session.openWithCallback(self.hddReady, HarddiskWait, self.hdd)
-
+
class HarddiskSelection(Screen):
def __init__(self, session):
Screen.__init__(self, session)