Commit ef00bcf8 authored by Tobias's avatar Tobias Committed by Felix Paul Kühne

reset all paths derived from libraryBasePath when libraryBasePath is set

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 066e3adc
......@@ -49,6 +49,7 @@
NSString *_thumbnailFolderPath;
NSString *_databaseFolderPath;
NSString *_documentFolderPath;
NSString *_libraryBasePath;
}
@end
......@@ -146,6 +147,14 @@ static NSString *kDecrapifyTitles = @"MLDecrapifyTitles";
return _libraryBasePath;
}
- (void)setLibraryBasePath:(NSString *)libraryBasePath
{
_libraryBasePath = [libraryBasePath copy];
_databaseFolderPath = nil;
_thumbnailFolderPath = nil;
_persistentStoreURL = nil;
}
- (NSString *)databaseFolderPath
{
if (_databaseFolderPath.length == 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment