1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Twitter module supports subscribing to multiple screen names

This commit is contained in:
Chris Cummer
2018-09-01 17:05:52 -07:00
parent 0cdaf5c2d3
commit e760561027
5 changed files with 94 additions and 37 deletions

View File

@@ -16,6 +16,10 @@ func NewMultiSourceWidget() MultiSourceWidget {
/* -------------------- Exported Functions -------------------- */
func (widget *MultiSourceWidget) CurrentSource() string {
if widget.Idx >= len(widget.Sources) {
return ""
}
return widget.Sources[widget.Idx]
}