From fb2e148ce4cb1db7c85acd5430dbdd883c598e43 Mon Sep 17 00:00:00 2001 From: Mike Fulbright Date: Wed, 29 Jan 2003 04:58:11 +0000 Subject: make back button work --- rescue.py | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'rescue.py') diff --git a/rescue.py b/rescue.py index 00e4257f8..2dcfc9a82 100644 --- a/rescue.py +++ b/rescue.py @@ -135,16 +135,22 @@ def runRescue(instPath, mountroot, id): screen = SnackScreen() - rc = ButtonChoiceWindow(screen, _("Setup Networking"), - _("Do you want to start the network interfaces on this system?"), - [_("Yes"), _("No")]) - - if rc != string.lower(_("No")): - intf = RescueInterface(screen) - - window = network_text.NetworkWindow() - rc = apply(window, (screen, id.network, intf, 1)) - startNetworking(id.network) + while 1: + rc = ButtonChoiceWindow(screen, _("Setup Networking"), + _("Do you want to start the network interfaces on " + "this system?"), [_("Yes"), _("No")]) + + if rc != string.lower(_("No")): + intf = RescueInterface(screen) + + window = network_text.NetworkWindow() + rc = apply(window, (screen, id.network, intf, 1)) + if rc == INSTALL_OK: + startNetworking(id.network) + break + else: + break + screen.finish() -- cgit