diff options
Diffstat (limited to 'go-src/windows.go')
| -rw-r--r-- | go-src/windows.go | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/go-src/windows.go b/go-src/windows.go index 7401536..50bc5d5 100644 --- a/go-src/windows.go +++ b/go-src/windows.go @@ -221,7 +221,7 @@ func chatWindow(values ...string) { lastLine = -2 // Practically stops execution of the paginated subwindow routine } -func accountWindow(...string) { +func accountWindow(values ...string) { csi.ClearScreen() ui.NormalBox(true, chatNavTitle, directMessagesNavTitle, logoutNavTitle) @@ -232,9 +232,16 @@ func accountWindow(...string) { ) ui.EmptyLine() + if len(values) > 0 { + if values[0] == showHelp { + ui.TextField(accountWindowHelpMsg) + } + } input := ui.InputField(accountWindowSpec) - nextWindow := handleInputActions(input, true) + nextWindow := handleInputActions(input, true, + inputAction{"H", accountWindow, []string{showHelp}}, + ) if nextWindow == nil { userProp, _ := strconv.Atoi(input) |
