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

Commit 4025d1e

Browse files
committed
check if currently in a github repo.
1 parent a3803a6 commit 4025d1e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.TeamFoundation.14/Home/GitHubHomeSection.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public GitHubHomeSection(IGitHubServiceProvider serviceProvider,
5555
OpenOnGitHub = openOnGitHub;
5656

5757
// We want to display a welcome message but only if Team Explorer isn't
58-
// already displaying the "Install 3rd Party Tools" message. To do this
59-
// we need to set a timer and check in the tick as at this point the message
58+
// already displaying the "Install 3rd Party Tools" message and the current repo is hosted on GitHub.
59+
// To do this we need to set a timer and check in the tick as at this point the message
6060
// won't be initialized.
6161
if (!settings.HideTeamExplorerWelcomeMessage)
6262
{
@@ -65,7 +65,7 @@ public GitHubHomeSection(IGitHubServiceProvider serviceProvider,
6565
timer.Tick += (s, e) =>
6666
{
6767
timer.Stop();
68-
if (!IsGitToolsMessageVisible())
68+
if (!IsGitToolsMessageVisible() && IsVisible)
6969
{
7070
ShowWelcomeMessage();
7171
}

0 commit comments

Comments
 (0)