mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 02:40:24 +08:00
fix<Watcher>: goto repository's tab when it's already opened
This commit is contained in:
@@ -44,7 +44,10 @@ namespace SourceGit.Models {
|
||||
/// </summary>
|
||||
/// <param name="repo"></param>
|
||||
public static void Open(Repository repo) {
|
||||
if (all.ContainsKey(repo.Path)) return;
|
||||
if (all.ContainsKey(repo.Path)) {
|
||||
Opened?.Invoke(repo);
|
||||
return;
|
||||
}
|
||||
|
||||
var watcher = new Watcher();
|
||||
watcher.Start(repo.Path, repo.GitDir);
|
||||
|
||||
Reference in New Issue
Block a user