Skip to content

Commit d6c780f

Browse files
committed
Don't include repositories that have been deleted or moved in Open Recent
1 parent 9a69e97 commit d6c780f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Classes/Controllers/OpenRecentController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ - (id)init
2424

2525
possibleResults = [NSMutableArray array];
2626
for (NSURL *url in [[NSDocumentController sharedDocumentController] recentDocumentURLs]) {
27-
[possibleResults addObject: url];
27+
if ([url checkResourceIsReachableAndReturnError:NULL]) {
28+
[possibleResults addObject: url];
29+
}
2830
}
2931

3032

0 commit comments

Comments
 (0)