diff options
author | Damiano Galassi <[email protected]> | 2020-04-26 18:54:24 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2020-04-26 18:54:24 +0200 |
commit | 5b87b8809e3717ae5a7a38e5adba8a123e40d0ff (patch) | |
tree | f241b2b412aa573d6e9048fa9e804ba53354955f | |
parent | 1f09b740f80dac1ab1e0b17519b2a7e4f3440fa4 (diff) |
MacGui: handle all KVO messages, fixes #2796 .
-rw-r--r-- | macosx/HBQueue.m | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/macosx/HBQueue.m b/macosx/HBQueue.m index 21348c3ce..c6b0a882e 100644 --- a/macosx/HBQueue.m +++ b/macosx/HBQueue.m @@ -106,9 +106,12 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context { - if (context == HBQueueContext && self.isEncoding) + if (context == HBQueueContext) { - [self encodeNextQueueItem]; + if (self.isEncoding) + { + [self encodeNextQueueItem]; + } } else { |