Simplify widget creation by removing unused cell blink option

This commit is contained in:
Arindy 2025-12-22 20:47:32 +01:00
parent 7b6a8bbaab
commit 9bcb0b15f7

View File

@ -21,7 +21,7 @@ func PiholeBlocked() PiholeBlockedOptions {
}
func createPiholeBlocked(ctx context.Context, _ terminalapi.Terminal, _ interface{}) widgetapi.Widget {
widget := util.PanicOnErrorWithResult(donut.New(donut.CellOpts(cell.FgColor(cell.ColorRed), cell.Blink()), donut.HolePercent(20), donut.ShowTextProgress()))
widget := util.PanicOnErrorWithResult(donut.New(donut.CellOpts(cell.FgColor(cell.ColorRed)), donut.HolePercent(20), donut.ShowTextProgress()))
ph := pihole.Connect()
go util.Periodic(ctx, 1*time.Minute, func() error {