1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Simplify the Blockfolio constructor; removes unused params

This commit is contained in:
Chris Cummer
2018-08-03 05:46:36 -07:00
parent 72c192cabf
commit d25b178696
2 changed files with 2 additions and 4 deletions

View File

@@ -7,18 +7,16 @@ import (
"log"
"net/http"
"github.com/rivo/tview"
"github.com/senorprogrammer/wtf/wtf"
)
type Widget struct {
wtf.TextWidget
app *tview.Application
device_token string
}
func NewWidget(app *tview.Application, pages *tview.Pages) *Widget {
func NewWidget() *Widget {
widget := Widget{
TextWidget: wtf.NewTextWidget(" Blockfolio ", "blockfolio", false),
device_token: wtf.Config.UString("wtf.mods.blockfolio.device_token"),