diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-11 12:16:38 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-11 12:30:14 +1100 |
commit | e8b97c9fe2db8d39084789a8503db4cbadcdde42 (patch) | |
tree | e4c97b239ca389ee64f3e38ee873457441778cc0 /pkg/gui/filetree | |
parent | ab03cf8bcf1bac5a9357119f10aa69834e10a965 (diff) |
fix could-not-access error
Diffstat (limited to 'pkg/gui/filetree')
-rw-r--r-- | pkg/gui/filetree/file_node.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/filetree/file_node.go b/pkg/gui/filetree/file_node.go index 2ff707113..abfdbafe6 100644 --- a/pkg/gui/filetree/file_node.go +++ b/pkg/gui/filetree/file_node.go @@ -42,6 +42,10 @@ func (self *FileNode) GetIsTracked() bool { return self.SomeFile(func(file *models.File) bool { return file.Tracked }) } +func (self *FileNode) GetIsFile() bool { + return self.IsFile() +} + func (self *FileNode) GetPreviousPath() string { if self.File == nil { return "" |