From cf3760102d7f2e1f5c3b0494838dafad8c081d6c Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Thu, 6 Aug 2009 21:52:08 +0200 Subject: FS#15800 - The submenu 'NET (ftp/http)' under 'select source' does not advance automatically to the next step --- src/core/libs/lib-ui-interactive.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh index 52f718c..586abc9 100644 --- a/src/core/libs/lib-ui-interactive.sh +++ b/src/core/libs/lib-ui-interactive.sh @@ -1277,12 +1277,14 @@ interactive_get_editor() { select_source_extras_menu () { while true; do - ask_option no "NET (HTTP/FTP) Installation" "Make sure the network is ok and you've selected a mirror before continuing the installer" required \ + default=no + [ -n "$NEXTITEM" ] && default="$NEXTITEM" + ask_option $default "NET (HTTP/FTP) Installation" "Make sure the network is ok and you've selected a mirror before continuing the installer" required \ "1" "$worker_runtime_network_title" \ "2" "$worker_select_mirror_title" \ "3" "Return to Main Menu" || return 1 - [ "$ANSWER_OPTION" = 1 ] && execute worker runtime_network - [ "$ANSWER_OPTION" = 2 ] && execute worker select_mirror + [ "$ANSWER_OPTION" = 1 ] && execute worker runtime_network && NEXTITEM=2 + [ "$ANSWER_OPTION" = 2 ] && execute worker select_mirror && NEXTITEM=3 [ "$ANSWER_OPTION" = 3 ] && break done } -- cgit v1.2.3-54-g00ecf