Commit 4e99b599 authored by Felix Paul Kühne's avatar Felix Paul Kühne

MLFile: improve notification handling for a few properties

parent 465b5263
......@@ -208,7 +208,7 @@ NSString *kMLFileTypeAudio = @"audio";
{
[self willChangeValueForKey:@"isSafe"];
[self setPrimitiveValue:@(isSafe) forKey:@"isSafe"];
[self willChangeValueForKey:@"isSafe"];
[self didChangeValueForKey:@"isSafe"];
}
- (BOOL)isBeingParsed
......@@ -223,7 +223,7 @@ NSString *kMLFileTypeAudio = @"audio";
{
[self willChangeValueForKey:@"isBeingParsed"];
[self setPrimitiveValue:@(isBeingParsed) forKey:@"isBeingParsed"];
[self willChangeValueForKey:@"isBeingParsed"];
[self didChangeValueForKey:@"isBeingParsed"];
}
- (BOOL)thumbnailTimeouted
......@@ -238,10 +238,9 @@ NSString *kMLFileTypeAudio = @"audio";
{
[self willChangeValueForKey:@"thumbnailTimeouted"];
[self setPrimitiveValue:@(thumbnailTimeouted) forKey:@"thumbnailTimeouted"];
[self willChangeValueForKey:@"thumbnailTimeouted"];
[self didChangeValueForKey:@"thumbnailTimeouted"];
}
- (void)willDisplay
{
[[MLThumbnailerQueue sharedThumbnailerQueue] setHighPriorityForFile:self];
......
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