mirror of
https://github.com/Xevion/glance.git
synced 2025-12-13 14:11:49 -06:00
Don't show error if RSS feeds didn't return any items
This commit is contained in:
@@ -18,6 +18,7 @@ type RSS struct {
|
||||
Items feed.RSSFeedItems `yaml:"-"`
|
||||
Limit int `yaml:"limit"`
|
||||
CollapseAfter int `yaml:"collapse-after"`
|
||||
NoItemsMessage string `yaml:"-"`
|
||||
}
|
||||
|
||||
func (widget *RSS) Initialize() error {
|
||||
@@ -45,6 +46,8 @@ func (widget *RSS) Initialize() error {
|
||||
}
|
||||
}
|
||||
|
||||
widget.NoItemsMessage = "No items were returned from the feeds."
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user