mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2025-01-23 01:36:57 -08:00
Merge pull request !6 from Jai/fix/restore-tabs-not-exists
This commit is contained in:
commit
31aae262fc
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue