From 35ef2d7ac08a3230be498a9e999ec3f516edb821 Mon Sep 17 00:00:00 2001 From: Thomas Wolf Date: Sun, 3 Nov 2019 15:08:58 +0100 Subject: 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 --- .../src/org/eclipse/egit/ui/internal/staging/StagingView.java | 4 ++++ 1 file changed, 4 insertions(+) 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 1b9f8b69c3..6f42f2de22 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); -- cgit v1.2.3