From 2c3f5be093c76a7bd71661e88e2823dd27fb431f Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sun, 23 Aug 2020 07:37:46 +1000 Subject: [PATCH] comment these things out because we're not using them yet --- pkg/gui/context.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 77527f466..78aafba37 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -215,9 +215,9 @@ func (gui *Gui) contextTree() ContextTree { }, Staging: SimpleContextNode{ Context: BasicContext{ - // TODO: think about different situations where this arises OnFocus: func() error { return nil + // TODO: centralise the code here // return gui.refreshStagingPanel(false, -1) }, Kind: MAIN_CONTEXT, @@ -227,9 +227,10 @@ func (gui *Gui) contextTree() ContextTree { }, PatchBuilding: SimpleContextNode{ Context: BasicContext{ - // TODO: think about different situations where this arises OnFocus: func() error { - return gui.refreshPatchBuildingPanel(-1) + return nil + // TODO: centralise the code here + // return gui.refreshPatchBuildingPanel(-1) }, Kind: MAIN_CONTEXT, ViewName: "main", @@ -238,9 +239,10 @@ func (gui *Gui) contextTree() ContextTree { }, Merging: SimpleContextNode{ Context: BasicContext{ - // TODO: think about different situations where this arises OnFocus: func() error { - return gui.refreshMergePanel() + return nil + // TODO: centralise the code here + // return gui.refreshMergePanel() }, Kind: MAIN_CONTEXT, ViewName: "main",