mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
delete useless check code
This commit is contained in:
parent
4661b2f67b
commit
b0af0d1d3b
@ -55,13 +55,8 @@ func NewWidget() *Widget {
|
|||||||
|
|
||||||
// Refresh refresh the module
|
// Refresh refresh the module
|
||||||
func (widget *Widget) Refresh() {
|
func (widget *Widget) Refresh() {
|
||||||
if widget.Disabled() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
widget.UpdateRefreshedAt()
|
widget.UpdateRefreshedAt()
|
||||||
widget.ipinfo()
|
widget.ipinfo()
|
||||||
|
|
||||||
widget.View.SetText(widget.result)
|
widget.View.SetText(widget.result)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user