From 93fd4291b5297530ae86a3c28e5f39d34145d99d Mon Sep 17 00:00:00 2001 From: Abhishek Keshri Date: Tue, 23 Jan 2024 00:09:08 +0530 Subject: [PATCH] fix: integrate new changes to commits controller --- pkg/gui/controllers/local_commits_controller.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go index 056ecb37e9c..ca42e4b5d41 100644 --- a/pkg/gui/controllers/local_commits_controller.go +++ b/pkg/gui/controllers/local_commits_controller.go @@ -190,9 +190,10 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [ }, { Key: opts.GetKey(opts.Config.Commits.AmendAttributeMenu), - Handler: self.checkSelected(self.amendAttribute), - GetDisabledReason: self.callGetDisabledReasonFuncWithSelectedCommit(self.getDisabledReasonForAmendTo), - Description: self.c.Tr.AmendAttributeMenu, OpensMenu: true, + Handler: self.withItem(self.amendAttribute), + GetDisabledReason: self.require(self.singleItemSelected((self.canAmend))), + Description: self.c.Tr.AmendAttributeMenu, + OpensMenu: true, }, { Key: opts.GetKey(opts.Config.Commits.RevertCommit),