aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
Diffstat (limited to 'hotline')
-rw-r--r--hotline/ui.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/hotline/ui.go b/hotline/ui.go
index e3e2fab..c5a0dbd 100644
--- a/hotline/ui.go
+++ b/hotline/ui.go
@@ -113,7 +113,8 @@ func (ui *UI) getTrackerList(servers []ServerRecord) *tview.List {
list.Box.SetBorder(true).SetTitle("| Servers |")
const shortcut = 97 // rune for "a"
- for i, srv := range servers {
+ for i, _ := range servers {
+ srv := servers[i]
list.AddItem(string(srv.Name), string(srv.Description), rune(shortcut+i), func() {
ui.Pages.RemovePage("joinServer")