mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
restructure app state, basic server connection using inputted user info and basic mainscreen
This commit is contained in:
+1
-1
@@ -79,7 +79,7 @@ func (s State) Update(msg tea.Msg) (State, tea.Cmd) {
|
||||
|
||||
// run the newClient cmd when pressing "enter" while focused on the connect button
|
||||
if str == "enter" && s.FocusIndex == len(s.Inputs)+1 {
|
||||
return s, tea.Quit // TODO: change this to create a newClient and connect using a tea.Cmd
|
||||
return s, connect
|
||||
}
|
||||
|
||||
// toggle tls state when pressing "enter" while focused on the checkbox
|
||||
|
||||
Reference in New Issue
Block a user