feature<Welcome>: 现在拖动目录到打开记录中后会直接打开仓库,而不是仅仅更新打开记录

This commit is contained in:
ZCShou 2021-08-06 14:23:03 +08:00
parent 3e0f360acc
commit 84a0e9f463

View file

@ -230,6 +230,7 @@ namespace SourceGit.Views.Widgets {
if (dir != null) {
var root = new Commands.GetRepositoryRootPath(path).Result();
Models.Preference.Instance.AddRepository(root, dir, parent);
CheckAndOpen(path);
rebuild = true;
}
}