IDEA-285766 Git branches popup duplicates branch

GitOrigin-RevId: 750780c92a931a7aa7cad35114a4a5937a70be9d
This commit is contained in:
Gregory.Shrago
2022-01-21 17:51:05 +03:00
committed by intellij-monorepo-bot
parent 695bdb18a1
commit 69fb64e29a
2 changed files with 2 additions and 3 deletions

View File

@@ -55,8 +55,7 @@ public abstract class DvcsBranchPopup<Repo extends Repository> {
myMultiRootBranchConfig = multiRootBranchConfig;
myInSpecificRepository = myRepositoryManager.moreThanOneRoot() && myVcsSettings.getSyncSetting() == DvcsSyncSettings.Value.DONT_SYNC;
String title = buildTitle(currentRepository);
myPopup = new BranchActionGroupPopup(title, myProject, preselectActionCondition,
ActionGroupUtil.forceRecursiveUpdateInBackground(createActions()), dimensionKey, dataContext);
myPopup = new BranchActionGroupPopup(title, myProject, preselectActionCondition, createActions(), dimensionKey, dataContext);
initBranchSyncPolicyIfNotInitialized();
warnThatBranchesDivergedIfNeeded();
if (myRepositoryManager.moreThanOneRoot()) {

View File

@@ -68,7 +68,7 @@ public final class BranchActionGroupPopup extends FlatSpeedSearchPopup {
@NotNull ActionGroup actions,
@Nullable String dimensionKey,
@NotNull DataContext dataContext) {
super(title, createBranchSpeedSearchActionGroup(actions), dataContext, preselectActionCondition, true);
super(title, ActionGroupUtil.forceRecursiveUpdateInBackground(createBranchSpeedSearchActionGroup(actions)), dataContext, preselectActionCondition, true);
getTitle().setBackground(JBColor.PanelBackground);
myProject = project;
DataManager.registerDataProvider(getList(), dataId -> POPUP_MODEL.is(dataId) ? getListModel() : null);