зеркало из https://github.com/nextcloud/desktop.git
Do not set badge identifier for a given path URL if the URL is nil
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Родитель
87d90aba27
Коммит
ffa0e55025
|
@ -196,8 +196,12 @@
|
||||||
|
|
||||||
- (void)setResult:(NSString *)result forPath:(NSString*)path
|
- (void)setResult:(NSString *)result forPath:(NSString*)path
|
||||||
{
|
{
|
||||||
NSString *normalizedPath = [path decomposedStringWithCanonicalMapping];
|
NSString *const normalizedPath = path.decomposedStringWithCanonicalMapping;
|
||||||
[[FIFinderSyncController defaultController] setBadgeIdentifier:result forURL:[NSURL fileURLWithPath:normalizedPath]];
|
NSURL *const urlForPath = [NSURL fileURLWithPath:normalizedPath];
|
||||||
|
if (urlForPath == nil) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
[FIFinderSyncController.defaultController setBadgeIdentifier:result forURL:urlForPath];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)reFetchFileNameCacheForPath:(NSString*)path
|
- (void)reFetchFileNameCacheForPath:(NSString*)path
|
||||||
|
|
Загрузка…
Ссылка в новой задаче