This commit is contained in:
2025-08-18 13:52:00 +02:00
parent 6e3c6bb813
commit 92df34d325

View File

@@ -203,16 +203,17 @@ func (m Model) createAPForm() *huh.Form {
Value(&m.appConfig.Wifi.AP.Encryption),
huh.NewConfirm().
Key("done").
Title("All done?").
Key("save").
Title("Apply configuration").
Validate(func(v bool) error {
if !v {
return fmt.Errorf("Welp, finish up then")
m.state = stateModeSelection
return nil
}
return nil
}).
Affirmative("Yep").
Negative("Wait, no"),
Negative("Nope"),
),
).
WithWidth(45).