1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-06 03:53:59 +02:00

comment these things out because we're not using them yet

This commit is contained in:
Jesse Duffield 2020-08-23 07:37:46 +10:00
parent 95a4ca6f8e
commit 2c3f5be093

View File

@ -215,9 +215,9 @@ func (gui *Gui) contextTree() ContextTree {
}, },
Staging: SimpleContextNode{ Staging: SimpleContextNode{
Context: BasicContext{ Context: BasicContext{
// TODO: think about different situations where this arises
OnFocus: func() error { OnFocus: func() error {
return nil return nil
// TODO: centralise the code here
// return gui.refreshStagingPanel(false, -1) // return gui.refreshStagingPanel(false, -1)
}, },
Kind: MAIN_CONTEXT, Kind: MAIN_CONTEXT,
@ -227,9 +227,10 @@ func (gui *Gui) contextTree() ContextTree {
}, },
PatchBuilding: SimpleContextNode{ PatchBuilding: SimpleContextNode{
Context: BasicContext{ Context: BasicContext{
// TODO: think about different situations where this arises
OnFocus: func() error { OnFocus: func() error {
return gui.refreshPatchBuildingPanel(-1) return nil
// TODO: centralise the code here
// return gui.refreshPatchBuildingPanel(-1)
}, },
Kind: MAIN_CONTEXT, Kind: MAIN_CONTEXT,
ViewName: "main", ViewName: "main",
@ -238,9 +239,10 @@ func (gui *Gui) contextTree() ContextTree {
}, },
Merging: SimpleContextNode{ Merging: SimpleContextNode{
Context: BasicContext{ Context: BasicContext{
// TODO: think about different situations where this arises
OnFocus: func() error { OnFocus: func() error {
return gui.refreshMergePanel() return nil
// TODO: centralise the code here
// return gui.refreshMergePanel()
}, },
Kind: MAIN_CONTEXT, Kind: MAIN_CONTEXT,
ViewName: "main", ViewName: "main",