mirror of
https://github.com/jroimartin/gocui.git
synced 2025-04-28 13:48:51 +08:00
ShowTotal flag
This commit is contained in:
parent
37f7943420
commit
8a3c45e4fd
5
gui.go
5
gui.go
@ -134,6 +134,9 @@ type Gui struct {
|
||||
// frame of the current view.
|
||||
Highlight bool
|
||||
|
||||
// If ShowTotal is true then show list footer
|
||||
ShowTotal bool
|
||||
|
||||
// If Cursor is true then the cursor is enabled.
|
||||
Cursor bool
|
||||
|
||||
@ -723,7 +726,7 @@ func (g *Gui) flush() error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if v.ContainsList {
|
||||
if v.ContainsList && g.ShowTotal {
|
||||
if err := g.drawListFooter(v, fgColor, bgColor); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user