Sfoglia il codice sorgente

Always focus guilds tree at start-up

ayn2op 3 anni fa
parent
commit
4b186d15f8
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      main.go

+ 2 - 2
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)