From ab4e663ac4c5c597634224405320b437a283eb98 Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Mon, 8 Oct 2018 12:54:17 +0100 Subject: [PATCH] Show Team Explorer Home before starting to clone We need to make sure Team Explorer - Home is visible before the clone operation starts so the user can see progress have the option to cancel. --- src/GitHub.App/Services/RepositoryCloneService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/GitHub.App/Services/RepositoryCloneService.cs b/src/GitHub.App/Services/RepositoryCloneService.cs index e67a669146..d84d083b5d 100644 --- a/src/GitHub.App/Services/RepositoryCloneService.cs +++ b/src/GitHub.App/Services/RepositoryCloneService.cs @@ -121,6 +121,9 @@ public async Task CloneOrOpenRepository( throw new InvalidOperationException("Can't clone or open a repository because a file exists at: " + repositoryPath); } + // Make sure the Clone Repository UI is visible while cloning + teamExplorerServices.ShowHomePage(); + var repositoryUrl = url.ToRepositoryUrl(); var isDotCom = HostAddress.IsGitHubDotComUri(repositoryUrl); if (DestinationDirectoryExists(repositoryPath)) @@ -150,8 +153,6 @@ public async Task CloneOrOpenRepository( await usageTracker.IncrementCounter(x => x.NumberOfEnterpriseClones); } } - - teamExplorerServices.ShowHomePage(); } ///