From 9ab4b8373dafc0ddb2057c19c0cae31308bf9dce Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Fri, 2 Jul 2021 17:38:36 -0400 Subject: [PATCH] statusDescription depends on status (and error) --- Ample/DownloadWindowController.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Ample/DownloadWindowController.m b/Ample/DownloadWindowController.m index 3a582d1..5016c08 100644 --- a/Ample/DownloadWindowController.m +++ b/Ample/DownloadWindowController.m @@ -619,15 +619,9 @@ static NSInteger TaskStatusCode(NSURLSessionTask *task) { } } -#if 0 -// in practice, error and status set concurrently. -+(NSSet *)keyPathsForValuesAffectingStatus { - static NSSet *set = nil; - if (!set) set = [NSSet setWithObjects: @"error", nil]; - return set; ++(NSSet *)keyPathsForValuesAffectingStatusDescription { + return [NSSet setWithObjects: @"error", @"status", nil]; } -#endif - -(NSString *)statusDescription { static NSString *Names[] = {