Add config option to disable auto-expanding folders (#367)
This commit is contained in:
parent
260fe3718a
commit
c1b3597b8c
3 changed files with 3 additions and 0 deletions
|
|
@ -53,6 +53,7 @@ func (gt *GuildsTree) createGuildFolderNode(parent *tview.TreeNode, gf gateway.G
|
|||
}
|
||||
|
||||
n := tview.NewTreeNode(name)
|
||||
n.SetExpanded(cfg.Theme.GuildsTree.AutoExpandFolders)
|
||||
parent.AddChild(n)
|
||||
|
||||
for _, gid := range gf.GuildIDs {
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ type Config struct {
|
|||
BackgroundColor string `yaml:"background_color"`
|
||||
|
||||
GuildsTree struct {
|
||||
AutoExpandFolders bool `yaml:"auto_expand_folders"`
|
||||
Graphics bool `yaml:"graphics"`
|
||||
} `yaml:"guilds_tree"`
|
||||
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ theme:
|
|||
background_color: default
|
||||
|
||||
guilds_tree:
|
||||
auto_expand_folders: true
|
||||
graphics: true
|
||||
|
||||
messages_text:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue