summaryrefslogtreecommitdiffstats
path: root/pkg/gui/gui.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-01-30 14:46:46 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitc084abb378bc4ae2902e52f399c0f53968d1e717 (patch)
tree4f91ae022ae9a0c47042976c3c73f09a47925837 /pkg/gui/gui.go
parent8ea7b7a62e5a09314bbe7a446a45e649d66b524d (diff)
move more view model logic into the files view model
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r--pkg/gui/gui.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go
index a71b45116..bb515be4d 100644
--- a/pkg/gui/gui.go
+++ b/pkg/gui/gui.go
@@ -334,7 +334,6 @@ type suggestionsPanelState struct {
}
type panelStates struct {
- Files *filePanelState
Branches *branchPanelState
Remotes *remotePanelState
RemoteBranches *remoteBranchesState
@@ -448,7 +447,6 @@ func (gui *Gui) resetState(filterPath string, reuseState bool) {
BisectInfo: git_commands.NewNullBisectInfo(),
Panels: &panelStates{
// TODO: work out why some of these are -1 and some are 0. Last time I checked there was a good reason but I'm less certain now
- Files: &filePanelState{listPanelState{SelectedLineIdx: -1}},
Submodules: &submodulePanelState{listPanelState{SelectedLineIdx: -1}},
Branches: &branchPanelState{listPanelState{SelectedLineIdx: 0}},
Remotes: &remotePanelState{listPanelState{SelectedLineIdx: 0}},