Fix issue when user could move back on root node
This commit is contained in:
parent
c3d2f34f09
commit
6cd080fc72
|
@ -192,7 +192,7 @@ func (m *Menu) handleInput(input string) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if m.BackKey == input {
|
if m.cmdTree.Pointer != m.cmdTree.Root && m.BackKey == input {
|
||||||
afterHandler = func() {
|
afterHandler = func() {
|
||||||
m.cmdTree.Pointer = m.cmdTree.Pointer.Parent
|
m.cmdTree.Pointer = m.cmdTree.Pointer.Parent
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user