Simplify widget creation by removing unused cell blink option
This commit is contained in:
parent
7b6a8bbaab
commit
9bcb0b15f7
@ -21,7 +21,7 @@ func PiholeBlocked() PiholeBlockedOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func createPiholeBlocked(ctx context.Context, _ terminalapi.Terminal, _ interface{}) widgetapi.Widget {
|
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()
|
ph := pihole.Connect()
|
||||||
go util.Periodic(ctx, 1*time.Minute, func() error {
|
go util.Periodic(ctx, 1*time.Minute, func() error {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user