mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-22 20:37:19 -08:00
fix<Init>: fix crash when open repository after init
This commit is contained in:
parent
763779b529
commit
284e8077d6
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ namespace SourceGit.Views.Popups {
|
|||
if (!succ) return false;
|
||||
|
||||
var repo = Models.Preference.Instance.AddRepository(WorkDir, WorkDir + "\\.git", "");
|
||||
Models.Watcher.Open(repo);
|
||||
Dispatcher.Invoke(() => Models.Watcher.Open(repo));
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue