aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-16 20:20:20 +0200
commitc804e1d7630c408c726d7999f25d5cf7d786f1c5 (patch)
treee328d493b4a5495d580f1b951bcc59a5da27fae5
parentprompt ssh ok (diff)
downloadhardflip-c804e1d7630c408c726d7999f25d5cf7d786f1c5.tar.gz
hardflip-c804e1d7630c408c726d7999f25d5cf7d786f1c5.tar.bz2
hardflip-c804e1d7630c408c726d7999f25d5cf7d786f1c5.tar.xz
hardflip-c804e1d7630c408c726d7999f25d5cf7d786f1c5.tar.zst
hardflip-c804e1d7630c408c726d7999f25d5cf7d786f1c5.zip
fix
-rw-r--r--src/c_defs.go1
-rw-r--r--src/e_keys.go4
-rw-r--r--src/i_ui.go3
3 files changed, 2 insertions, 6 deletions
diff --git a/src/c_defs.go b/src/c_defs.go
index 5d24337..9e7015e 100644
--- a/src/c_defs.go
+++ b/src/c_defs.go
@@ -89,7 +89,6 @@ const (
WELCOME_GPG = iota
WELCOME_CONFIRM_GPG
WELCOME_SSH
- WELCOME_END
)
const (
diff --git a/src/e_keys.go b/src/e_keys.go
index 8094dd1..24976e6 100644
--- a/src/e_keys.go
+++ b/src/e_keys.go
@@ -316,11 +316,11 @@ func e_welcome_events(data *HardData, ui *HardUI, event tcell.EventKey) bool {
ui.welcome_screen += 1
ui.s.HideCursor()
ui.buff.empty()
+ c_write_options(data.opts.file, data.opts, &data.load_err)
+ data.ui.mode = NORMAL_MODE
} else {
e_readline(event, &ui.buff, ui, data.home_dir)
}
- case WELCOME_END:
- return false
}
return false
}
diff --git a/src/i_ui.go b/src/i_ui.go
index 5036589..7447803 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -797,9 +797,6 @@ func i_ui(data_dir string) {
i_prompt_confirm_gpg(data.ui, data.opts)
case WELCOME_SSH:
i_prompt_def_sshkey(data.ui, data.home_dir)
- default:
- c_write_options(data.opts.file, data.opts, &data.load_err)
- data.ui.mode = NORMAL_MODE
}
case NORMAL_MODE:
if data.litems.head == nil {