1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

allow configuring to show file tree on startup

This commit is contained in:
Jesse Duffield
2021-03-21 10:07:38 +11:00
parent 46b79c7c61
commit 6fc3c03c4b
5 changed files with 10 additions and 6 deletions

View File

@ -840,7 +840,7 @@ func (gui *Gui) handleToggleFileTreeView() error {
if node != nil {
path = node.Path
}
gui.State.StatusLineManager.TreeMode = !gui.State.StatusLineManager.TreeMode
gui.State.StatusLineManager.ShowTree = !gui.State.StatusLineManager.ShowTree
gui.State.StatusLineManager.SetTree()
// find that same node in the new format and move the cursor to it