diff options
| author | Jeff Carr <[email protected]> | 2025-02-09 13:32:01 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-09 13:32:01 -0600 |
| commit | 9560885b1171193294b22e2b04e5326bdb2bac5c (patch) | |
| tree | 343485e9581e6bd321df1634c7a2535aef6fd29c /scan.go | |
| parent | b91475b55b93a87aabb63e661a46d85c28623eb9 (diff) | |
correctly disable commit buttonv0.22.50
Diffstat (limited to 'scan.go')
| -rw-r--r-- | scan.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -72,8 +72,15 @@ func (r *RepoRow) Update() int { // disable the commit button if the repo is not on the user branch if pb.GetCurrentBranchName() == pb.GetUserBranchName() { - r.commitB.Enable() + if r.pb.GetState() == "dirty" { + r.diff.Enable() + r.commitB.Enable() + } else { + r.diff.Disable() + r.commitB.Disable() + } } else { + r.diff.Disable() r.commitB.Disable() } |
