summaryrefslogtreecommitdiffstats
path: root/pkg/gui/patch_building_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-21 20:31:21 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commite6a1bd656620d2b786266b593b197721d669085a (patch)
tree1c515c9856ad0e4bcbf3a66ba09c09e22e0d7c0d /pkg/gui/patch_building_panel.go
parent609f3f4bfaa71e0d94eac845ee0f8f6ffcf2e624 (diff)
generalise patch building stuff
Diffstat (limited to 'pkg/gui/patch_building_panel.go')
-rw-r--r--pkg/gui/patch_building_panel.go6
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{