mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
ignoring deprecation warning on NSUnarchiver (#4113)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#import "GroupsController.h"
|
||||
#import "NSImageAdditions.h"
|
||||
#import "NSKeyedUnarchiverAdditions.h"
|
||||
#import "NSMutableArrayAdditions.h"
|
||||
|
||||
static CGFloat const kIconWidth = 16.0;
|
||||
@@ -48,7 +49,7 @@ GroupsController* fGroupsInstance = nil;
|
||||
}
|
||||
else if ((data = [NSUserDefaults.standardUserDefaults dataForKey:@"Groups"])) //handle old groups
|
||||
{
|
||||
_fGroups = [NSUnarchiver unarchiveObjectWithData:data];
|
||||
_fGroups = [NSKeyedUnarchiver deprecatedUnarchiveObjectWithData:data];
|
||||
[NSUserDefaults.standardUserDefaults removeObjectForKey:@"Groups"];
|
||||
[self saveGroups];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user