optimize(*): speed up for openning same repository that already opened before

This commit is contained in:
leo 2020-08-05 16:21:40 +08:00
parent 65d89897f1
commit 073c189f18
4 changed files with 22 additions and 12 deletions

View file

@ -958,7 +958,8 @@ namespace SourceGit.UI {
sub.Path = Path.Combine(repo.Path, path);
sub.Name = Path.GetFileName(path);
sub.Parent = repo;
sub.Open();
if (!(App.Current.MainWindow as Launcher).GotoRepo(sub)) sub.Open();
}
#endregion