diff --git a/src/Views/Popups/Init.xaml.cs b/src/Views/Popups/Init.xaml.cs index 08a3bcbf..53deb24d 100644 --- a/src/Views/Popups/Init.xaml.cs +++ b/src/Views/Popups/Init.xaml.cs @@ -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; }); }