mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Enabled half-measure: widgets won't run if disabled (still need to not display)
This commit is contained in:
committed by
Chris Cummer
parent
b4bc6d4509
commit
ae13d52665
@@ -31,6 +31,10 @@ func NewWidget() *Widget {
|
||||
/* -------------------- Exported Functions -------------------- */
|
||||
|
||||
func (widget *Widget) Refresh() {
|
||||
if widget.Enabled == false {
|
||||
return
|
||||
}
|
||||
|
||||
data := Fetch()
|
||||
|
||||
title := fmt.Sprintf("[green]%s[white]\n", data["repo"][0])
|
||||
|
||||
Reference in New Issue
Block a user