Always focus guilds tree at start-up

This commit is contained in:
ayn2op 2023-01-02 01:20:07 +05:30
parent 227444f24e
commit 4b186d15f8

View file

@ -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)