mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 02:40:24 +08:00
fix<Init>: fix crash when open repository after init
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user