summaryrefslogtreecommitdiff
path: root/fsm.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 13:26:51 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-27 13:26:51 +0200
commit0592fa2caf4f36b0091c113d2309f2b3f79eab48 (patch)
treeab2fa9c6bd12ad64d4ec25d22565a3477460e31b /fsm.go
parent010a9ce99fd7f17ece9d7b804c9b5f3ab30a2bed (diff)
FSM: Add loading server transition to main screen
Diffstat (limited to 'fsm.go')
-rw-r--r--fsm.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/fsm.go b/fsm.go
index 187e581..8f60605 100644
--- a/fsm.go
+++ b/fsm.go
@@ -107,8 +107,9 @@ func newFSM(
STATE_NO_SERVER: FSMState{
Transitions: []FSMTransition{
{To: STATE_NO_SERVER, Description: "Reload list"},
- {To: STATE_CHOSEN_SERVER, Description: "User chooses a server"},
- {To: STATE_SEARCH_SERVER, Description: "The user is trying to choose a Server in the UI"},
+ {To: STATE_LOADING_SERVER, Description: "User clicks a server in the UI"},
+ {To: STATE_CHOSEN_SERVER, Description: "The server has been chosen"},
+ {To: STATE_SEARCH_SERVER, Description: "The user is trying to choose a new server in the UI"},
{To: STATE_CONNECTED, Description: "The user is already connected"},
{To: STATE_ASK_LOCATION, Description: "Change the location in the main screen"},
},