update due to gumble API changes

This commit is contained in:
Tim Cooper
2016-04-23 11:14:41 -03:00
parent 95c3fc469b
commit 4d141b6131
5 changed files with 50 additions and 48 deletions

View File

@@ -38,6 +38,10 @@ func (b *Barnard) TreeItemSelect(ui *uiterm.Ui, tree *uiterm.Tree, item uiterm.T
}
func (b *Barnard) TreeItem(item uiterm.TreeItem) []uiterm.TreeItem {
if b.Client == nil {
return nil
}
var treeItem TreeItem
if ti, ok := item.(TreeItem); !ok {
root := b.Client.Channels[0]