File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 5959- (void )adjustTitleLabelWidthBasedOnButtonsShown ;
6060- (UIImage *)icon ;
6161- (NSString *)uniqueIdentifier ; // Used to find a corresponding feed from a installed docset
62+ - (NSString *)installFolderName ;
6263
6364@end
Original file line number Diff line number Diff line change @@ -231,4 +231,9 @@ - (NSString *)uniqueIdentifier // Used to find a corresponding feed from a insta
231231 return self.feedURL ;
232232}
233233
234+ - (NSString *)installFolderName
235+ {
236+ return (self._uniqueIdentifier ) ? self._uniqueIdentifier .lastPathComponent : self.feed .lastPathComponent .stringByDeletingPathExtension ;
237+ }
238+
234239@end
Original file line number Diff line number Diff line change @@ -827,8 +827,7 @@ - (NSString *)docsetInstallFolderPath
827827
828828- (NSString *)docsetPathForFeed : (DHFeed *)feed
829829{
830- NSString *filename = [[feed.feed lastPathComponent ] stringByDeletingPathExtension ];
831- return [[self docsetInstallFolderPath ] stringByAppendingPathComponent: filename];
830+ return [[self docsetInstallFolderPath ] stringByAppendingPathComponent: feed.installFolderName];
832831}
833832
834833- (NSString *)defaultsKey
You can’t perform that action at this time.
0 commit comments