fix<Init>: fix crash when open repository after init

This commit is contained in:
leo 2021-05-26 19:20:23 +08:00
parent 763779b529
commit 284e8077d6

View file

@ -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;
});
}