mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Remove RefreshedAt from TextWidget
This attribute is used for absolutely nothing. It doesn't need to exist.
This commit is contained in:
@@ -98,7 +98,6 @@ func makeMarketCurrency(name string) *mCurrency {
|
||||
// Refresh & update after interval time
|
||||
func (widget *Widget) Refresh() {
|
||||
widget.updateSummary()
|
||||
widget.UpdateRefreshedAt()
|
||||
widget.display()
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ func NewWidget(app *tview.Application) *Widget {
|
||||
/* -------------------- Exported Functions -------------------- */
|
||||
|
||||
func (widget *Widget) Refresh() {
|
||||
widget.UpdateRefreshedAt()
|
||||
widget.View.SetTitle(" Blockfolio ")
|
||||
|
||||
positions, err := Fetch(widget.device_token)
|
||||
|
||||
@@ -42,8 +42,6 @@ func (widget *Widget) Refresh() {
|
||||
widget.toplistWidget.Refresh(&wg)
|
||||
wg.Wait()
|
||||
|
||||
widget.UpdateRefreshedAt()
|
||||
|
||||
display(widget)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user