mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-20 12:31:54 +02:00
Fix group widget
This commit is contained in:
@@ -55,6 +55,12 @@ func (widget *Group) Update(ctx context.Context) {
|
|||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (widget *Group) SetProviders(providers *Providers) {
|
||||||
|
for i := range widget.Widgets {
|
||||||
|
widget.Widgets[i].SetProviders(providers)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func (widget *Group) RequiresUpdate(now *time.Time) bool {
|
func (widget *Group) RequiresUpdate(now *time.Time) bool {
|
||||||
for i := range widget.Widgets {
|
for i := range widget.Widgets {
|
||||||
if widget.Widgets[i].RequiresUpdate(now) {
|
if widget.Widgets[i].RequiresUpdate(now) {
|
||||||
|
Reference in New Issue
Block a user