From 4b186d15f8787e34a5c5b374d4c9bc012b184d2c Mon Sep 17 00:00:00 2001 From: ayn2op Date: Mon, 2 Jan 2023 01:20:07 +0530 Subject: [PATCH] Always focus guilds tree at start-up --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 6e132a1..e15f23b 100644 --- a/main.go +++ b/main.go @@ -49,8 +49,8 @@ func main() { right.SetDirection(tview.FlexRow) right.AddItem(messagesText, 0, 1, false) right.AddItem(messageInput, 3, 1, false) - - flex.AddItem(guildsTree, 0, 1, false) + // The guilds tree is always focused first at start-up. + flex.AddItem(guildsTree, 0, 1, true) flex.AddItem(right, 0, 4, false) app.EnableMouse(cfg.Mouse)