mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Remove duplicate entries in makeWidgets()
This commit is contained in:
parent
45d4d2cf2a
commit
e1372f6ae8
8
wtf.go
8
wtf.go
@ -158,9 +158,9 @@ var (
|
|||||||
func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
||||||
// Always in alphabetical order
|
// Always in alphabetical order
|
||||||
bamboohr.Config = Config
|
bamboohr.Config = Config
|
||||||
|
bittrex.Config = Config
|
||||||
clocks.Config = Config
|
clocks.Config = Config
|
||||||
cmdrunner.Config = Config
|
cmdrunner.Config = Config
|
||||||
wtf.Config = Config
|
|
||||||
cryptolive.Config = Config
|
cryptolive.Config = Config
|
||||||
gcal.Config = Config
|
gcal.Config = Config
|
||||||
git.Config = Config
|
git.Config = Config
|
||||||
@ -178,14 +178,14 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
todo.Config = Config
|
todo.Config = Config
|
||||||
weather.Config = Config
|
weather.Config = Config
|
||||||
wtf.Config = Config
|
wtf.Config = Config
|
||||||
cryptolive.Config = Config
|
|
||||||
bittrex.Config = Config
|
|
||||||
|
|
||||||
// Always in alphabetical order
|
// Always in alphabetical order
|
||||||
Widgets = []wtf.Wtfable{
|
Widgets = []wtf.Wtfable{
|
||||||
bamboohr.NewWidget(),
|
bamboohr.NewWidget(),
|
||||||
|
bittrex.NewWidget(),
|
||||||
clocks.NewWidget(),
|
clocks.NewWidget(),
|
||||||
cmdrunner.NewWidget(),
|
cmdrunner.NewWidget(),
|
||||||
|
cryptolive.NewWidget(),
|
||||||
gcal.NewWidget(),
|
gcal.NewWidget(),
|
||||||
git.NewWidget(app, pages),
|
git.NewWidget(app, pages),
|
||||||
github.NewWidget(app, pages),
|
github.NewWidget(app, pages),
|
||||||
@ -201,8 +201,6 @@ func makeWidgets(app *tview.Application, pages *tview.Pages) {
|
|||||||
textfile.NewWidget(app, pages),
|
textfile.NewWidget(app, pages),
|
||||||
todo.NewWidget(app, pages),
|
todo.NewWidget(app, pages),
|
||||||
weather.NewWidget(app, pages),
|
weather.NewWidget(app, pages),
|
||||||
cryptolive.NewWidget(),
|
|
||||||
bittrex.NewWidget(),
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FocusTracker = wtf.FocusTracker{
|
FocusTracker = wtf.FocusTracker{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user