mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix<Watcher>: goto repository's tab when it's already opened
This commit is contained in:
parent
524eb8ef6d
commit
d0b1fbd7fb
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue