Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Wolf2019-11-03 09:08:58 -0500
committerThomas Wolf2019-11-04 12:56:29 -0500
commit35ef2d7ac08a3230be498a9e999ec3f516edb821 (patch)
tree35255b05bebeb52e1de3f4cbf7eb259f2f4aaeb7
parent626d2927541bd87652d49178e6c299a6785dab44 (diff)
downloadegit-35ef2d7ac08a3230be498a9e999ec3f516edb821.tar.gz
egit-35ef2d7ac08a3230be498a9e999ec3f516edb821.tar.xz
egit-35ef2d7ac08a3230be498a9e999ec3f516edb821.zip
StagingView: make sure the label decoration is updated
Even if the repository doesn't change, its HEAD or branch state might have changed. Make sure the staging view title picks up that change. Change-Id: I6b0948478dd01c8dd3866a73488c1b461e6017a7 Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
index 1b9f8b69c..6f42f2de2 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/staging/StagingView.java
@@ -3748,6 +3748,10 @@ public class StagingView extends ViewPart
.addConfigChangedListener(
event -> updateCommitAuthorAndCommitter(
repository));
+ } else if (titleNode != null) {
+ // The label decoration may need an update.
+ form.setText(titleLabelProvider.getStyledText(titleNode)
+ .getString());
}
final StagingViewUpdate update = new StagingViewUpdate(repository,
indexDiff, null);

Back to the top