summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueue.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBQueue.m')
-rw-r--r--macosx/HBQueue.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/HBQueue.m b/macosx/HBQueue.m
index d5b91b610..3f57e72ec 100644
--- a/macosx/HBQueue.m
+++ b/macosx/HBQueue.m
@@ -728,6 +728,12 @@ NSString * const HBQueueItemNotificationItemKey = @"HBQueueItemNotificationItemK
void (^completionHandler)(HBCoreResult result) = ^(HBCoreResult result)
{
[self completedItem:item result:result];
+
+ if ([NSUserDefaults.standardUserDefaults boolForKey:HBQueueAutoClearCompletedItems])
+ {
+ [self removeCompletedItems];
+ }
+
[self encodeNextQueueItem];
};