mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08: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>
|
/// </summary>
|
||||||
/// <param name="repo"></param>
|
/// <param name="repo"></param>
|
||||||
public static void Open(Repository repo) {
|
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();
|
var watcher = new Watcher();
|
||||||
watcher.Start(repo.Path, repo.GitDir);
|
watcher.Start(repo.Path, repo.GitDir);
|
||||||
|
|
Loading…
Reference in a new issue