Skip to content

Commit

Permalink
Finishes de-hardcoding the buttonOrder references
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxserxxx committed Sep 18, 2024
1 parent 17a8dde commit f6d7cbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ var buttonOrder = []string{PageBrowser, PageQueue, PagePlaylists, PageSearch, Pa

func (ui *Ui) createMenuWidget() (m *MenuWidget) {
m = &MenuWidget{
activeButton: buttonOrder[0],
activeButton: buttonOrder[PAGE_BROWSER],
buttons: make(map[string]*tview.Button),

buttonStyle: tcell.StyleDefault.Background(tcell.ColorBlack).Foreground(tcell.ColorWhite),
Expand Down

0 comments on commit f6d7cbb

Please sign in to comment.