mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[hg]: switch off popup icons for unnamed branch actions
This commit is contained in:
@@ -54,6 +54,14 @@ public class HgCommonBranchActions extends BranchActionGroup {
|
||||
getTemplatePresentation().setText(myBranchName, false); // no mnemonics
|
||||
myBranchType = branchType;
|
||||
setFavorite(myBranchManager.isFavorite(myBranchType, chooseRepository(myRepositories), myBranchName));
|
||||
hideIconForUnnamedHeads();
|
||||
}
|
||||
|
||||
private void hideIconForUnnamedHeads() {
|
||||
if (myBranchType == null) {
|
||||
getTemplatePresentation().setIcon(null);
|
||||
getTemplatePresentation().setHoveredIcon(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user