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), Value(&m.appConfig.Wifi.AP.Encryption),
huh.NewConfirm(). huh.NewConfirm().
Key("done"). Key("save").
Title("All done?"). Title("Apply configuration").
Validate(func(v bool) error { Validate(func(v bool) error {
if !v { if !v {
return fmt.Errorf("Welp, finish up then") m.state = stateModeSelection
return nil
} }
return nil return nil
}). }).
Affirmative("Yep"). Affirmative("Yep").
Negative("Wait, no"), Negative("Nope"),
), ),
). ).
WithWidth(45). WithWidth(45).