diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-12 15:28:56 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-12 15:28:56 +0200 |
| commit | e7f0f34827ed8c2f07c16e18e9b1c23311550951 (patch) | |
| tree | ed3afe1f2cbab60859152ef1e0804288ba0b1df2 | |
| parent | e7649f2dec8e146779b54627f5efb88f97e3392d (diff) | |
FSM: Fix Ask Profile transitions
| -rw-r--r-- | internal/fsm/fsm.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go index b04166f..85e83fb 100644 --- a/internal/fsm/fsm.go +++ b/internal/fsm/fsm.go @@ -136,7 +136,7 @@ func (fsm *FSM) Init(name string, callback func(string, string, string), logger OAUTH_STARTED: FSMState{Transitions: []FSMTransition{{AUTHORIZED, "User authorizes with browser"}, {NO_SERVER, "Cancel or Error"}, {SEARCH_SERVER, "Cancel or Error"}}}, AUTHORIZED: FSMState{Transitions: []FSMTransition{{OAUTH_STARTED, "Re-authorize with OAuth"}, {REQUEST_CONFIG, "Client requests a config"}}}, REQUEST_CONFIG: FSMState{Transitions: []FSMTransition{{ASK_PROFILE, "Multiple profiles found and no profile chosen"}, {HAS_CONFIG, "Only one profile or profile already chosen"}, {NO_SERVER, "Cancel or Error"}, {OAUTH_STARTED, "Re-authorize"}}}, - ASK_PROFILE: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "User chooses profile"}, {NO_SERVER, "Done but no profile selected"}}}, + ASK_PROFILE: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "User chooses profile"}, {NO_SERVER, "Cancel or Error"}, {SEARCH_SERVER, "Cancel or Error"}}}, HAS_CONFIG: FSMState{Transitions: []FSMTransition{{CONNECTED, "OS reports connected"}, {REQUEST_CONFIG, "User chooses a new profile"}, {NO_SERVER, "User wants to choose a new server"}}, MainState: true}, CONNECTED: FSMState{Transitions: []FSMTransition{{HAS_CONFIG, "OS reports disconnected"}}, MainState: true}, } |
