mirror of
https://github.com/textmate/textmate.git
synced 2026-04-28 03:00:34 -04:00
Skip non-existing recent projects
Long-term it would make sense to also delete them if they haven’t been used for e.g. a month.
This commit is contained in:
@@ -133,8 +133,11 @@ static NSUInteger const kOakSourceIndexFavorites = 1;
|
||||
favorites.clear();
|
||||
for(id pair in [[self sharedProjectStateDB] allObjects])
|
||||
{
|
||||
std::string const path = to_s((NSString*)pair[@"key"]);
|
||||
favorites.emplace(path::name(path), path);
|
||||
if(access([pair[@"key"] fileSystemRepresentation], F_OK) == 0)
|
||||
{
|
||||
std::string const path = to_s((NSString*)pair[@"key"]);
|
||||
favorites.emplace(path::name(path), path);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(_sourceIndex == kOakSourceIndexFavorites)
|
||||
|
||||
Reference in New Issue
Block a user