summaryrefslogtreecommitdiffstats
path: root/pkg/gui/files_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-21 15:28:18 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-03-30 21:57:00 +1100
commit1ea78c7ae7c03ca337f9dcc774d168291bce2bc7 (patch)
tree19688f708970add5c33c087ea68e935f7bd24d82 /pkg/gui/files_panel.go
parente7af3bf55df8493e6c327353c88e1acee876cad0 (diff)
make fields private
Diffstat (limited to 'pkg/gui/files_panel.go')
-rw-r--r--pkg/gui/files_panel.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/files_panel.go b/pkg/gui/files_panel.go
index 6d3bdbec5..ae1531c35 100644
--- a/pkg/gui/files_panel.go
+++ b/pkg/gui/files_panel.go
@@ -840,8 +840,8 @@ func (gui *Gui) handleToggleFileTreeView() error {
if node != nil {
path = node.Path
}
- gui.State.FileChangeManager.ShowTree = !gui.State.FileChangeManager.ShowTree
- gui.State.FileChangeManager.SetTree()
+
+ gui.State.FileChangeManager.ToggleShowTree()
// find that same node in the new format and move the cursor to it
if path != "" {