Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 17716ef

Browse files
committed
Refresh NavigationItem visibility on construction
Previously visibility was only being refreshed when a new repository change event arrived.
1 parent 1ba9d20 commit 17716ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.TeamFoundation.14/Base/TeamExplorerNavigationItemBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public TeamExplorerNavigationItemBase(IGitHubServiceProvider serviceProvider,
3939
Invalidate();
4040
};
4141

42-
ActiveRepo = holder.TeamExplorerContext.ActiveRepository;
42+
UpdateRepoOnMainThread(holder.TeamExplorerContext.ActiveRepository);
4343
holder.TeamExplorerContext.PropertyChanged += TeamExplorerContext_PropertyChanged;
4444
}
4545

0 commit comments

Comments
 (0)