Merge pull request !6 from Jai/fix/restore-tabs-not-exists

This commit is contained in:
leo 2021-07-07 02:48:53 +00:00 committed by Gitee
commit 31aae262fc

View file

@ -89,6 +89,7 @@ namespace SourceGit {
var actived = null as Models.Repository;
if (restore.IsEnabled && restore.Opened.Count > 0) {
foreach (var path in restore.Opened) {
if (!Directory.Exists(path)) continue;
var repo = Models.Preference.Instance.FindRepository(path);
if (repo != null) Models.Watcher.Open(repo);
if (path == restore.Actived) actived = repo;