diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 20:31:21 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | e6a1bd656620d2b786266b593b197721d669085a (patch) | |
tree | 1c515c9856ad0e4bcbf3a66ba09c09e22e0d7c0d /pkg/gui/patch_building_panel.go | |
parent | 609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624 (diff) |
generalise patch building stuff
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r-- | pkg/gui/patch_building_panel.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go index 76589505a..c39568cdf 100644 --- a/pkg/gui/patch_building_panel.go +++ b/pkg/gui/patch_building_panel.go @@ -6,7 +6,7 @@ import ( ) func (gui *Gui) refreshPatchBuildingPanel(selectedLineIdx int) error { - if !gui.GitCommand.PatchManager.CommitSelected() { + if !gui.GitCommand.PatchManager.Active() { return gui.handleEscapePatchBuildingPanel() } @@ -88,7 +88,7 @@ func (gui *Gui) handleEscapePatchBuildingPanel() error { func (gui *Gui) refreshSecondaryPatchPanel() error { // TODO: swap out for secondaryPatchPanelUpdateOpts - if gui.GitCommand.PatchManager.CommitSelected() { + if gui.GitCommand.PatchManager.Active() { gui.splitMainPanel(true) secondaryView := gui.getSecondaryView() secondaryView.Highlight = true @@ -106,7 +106,7 @@ func (gui *Gui) refreshSecondaryPatchPanel() error { } func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { - if gui.GitCommand.PatchManager.CommitSelected() { + if gui.GitCommand.PatchManager.Active() { patch := gui.GitCommand.PatchManager.RenderAggregatedPatchColored(false) return &viewUpdateOpts{ |