dettach menus from grid

This commit is contained in:
Bradley Cicenas
2017-01-08 23:07:58 +00:00
parent e73732ae98
commit 409d44e8a3
2 changed files with 9 additions and 11 deletions

View File

@@ -11,7 +11,7 @@ var helpDialog = []string{
"[q] - exit ctop",
}
func HelpMenu(g *Grid) {
func HelpMenu() {
m := widgets.NewMenu(helpDialog)
m.TextFgColor = ui.ColorWhite
m.BorderLabel = "Help"
@@ -23,7 +23,7 @@ func HelpMenu(g *Grid) {
ui.Loop()
}
func SortMenu(g *Grid) {
func SortMenu() {
m := widgets.NewMenu(SortFields)
m.Selectable = true
m.TextFgColor = ui.ColorWhite