Add head-widgets
This commit is contained in:
@@ -230,6 +230,20 @@ func (p *page) updateOutdatedWidgets() {
|
||||
var wg sync.WaitGroup
|
||||
context := context.Background()
|
||||
|
||||
for w := range p.HeadWidgets {
|
||||
widget := p.HeadWidgets[w]
|
||||
|
||||
if !widget.requiresUpdate(&now) {
|
||||
continue
|
||||
}
|
||||
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
widget.update(context)
|
||||
}()
|
||||
}
|
||||
|
||||
for c := range p.Columns {
|
||||
for w := range p.Columns[c].Widgets {
|
||||
widget := p.Columns[c].Widgets[w]
|
||||
|
||||
Reference in New Issue
Block a user