mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-17 11:30:59 +02: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