From e7d0dd402103dfcf217af418df5da05d5e9ff4b4 Mon Sep 17 00:00:00 2001 From: "Elena.Korotkova" Date: Tue, 8 Sep 2020 09:29:26 +0300 Subject: [PATCH] Refactoring IDEA-CR-66607 GitOrigin-RevId: 00352beca7be595c338b4dbcf672a65b77fca915 --- .../src/git4idea/actions/GitBranchesComboBoxAction.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/git4idea/src/git4idea/actions/GitBranchesComboBoxAction.java b/plugins/git4idea/src/git4idea/actions/GitBranchesComboBoxAction.java index b5914fcb64d3..146c34ddcac8 100644 --- a/plugins/git4idea/src/git4idea/actions/GitBranchesComboBoxAction.java +++ b/plugins/git4idea/src/git4idea/actions/GitBranchesComboBoxAction.java @@ -33,12 +33,11 @@ public class GitBranchesComboBoxAction extends ComboBoxAction { String name = DvcsBranchUtil.shortenBranchName(branchName); presentation.setText(name); presentation.setIcon(AllIcons.Vcs.Branch); + presentation.setEnabledAndVisible(true); } else { presentation.setEnabledAndVisible(false); - return; } - presentation.setEnabledAndVisible(true); } @Override