mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-42 WIP Add FeedReader, an RSS/Atom feed reader
This commit is contained in:
@@ -29,7 +29,7 @@ type Settings struct {
|
||||
|
||||
// NewSettingsFromYAML creates a new settings instance from a YAML config block
|
||||
func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *config.Config) *Settings {
|
||||
settings := Settings{
|
||||
settings := &Settings{
|
||||
common: cfg.NewCommonSettingsFromModule(name, defaultTitle, ymlConfig, globalConfig),
|
||||
|
||||
accounts: wtf.ToStrs(ymlConfig.UList("accounts")),
|
||||
@@ -45,7 +45,7 @@ func NewSettingsFromYAML(name string, ymlConfig *config.Config, globalConfig *co
|
||||
settings.common.RefreshInterval = minRefreshInterval
|
||||
}
|
||||
|
||||
return &settings
|
||||
return settings
|
||||
}
|
||||
|
||||
// HasSince returns TRUE if there's a valid "since" value setting, FALSE if there is not
|
||||
|
||||
@@ -72,7 +72,7 @@ func (widget *Widget) contentFrom(data []*Status) string {
|
||||
color = widget.settings.colors.pwned
|
||||
}
|
||||
|
||||
str = str + fmt.Sprintf(" [%s]%s[white]\n", color, stat.Account)
|
||||
str += fmt.Sprintf(" [%s]%s[white]\n", color, stat.Account)
|
||||
}
|
||||
|
||||
return str
|
||||
|
||||
Reference in New Issue
Block a user