mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
use the last attempted update of the blocklist for scheduling weekly updates
This commit is contained in:
@@ -504,7 +504,15 @@ tr_session * fHandle;
|
||||
NSString * updatedDateString;
|
||||
if (exists)
|
||||
{
|
||||
NSDate * updatedDate = [fDefaults objectForKey: @"BlocklistLastUpdate"];
|
||||
NSDate * updatedDate = [fDefaults objectForKey: @"BlocklistNewLastUpdateSuccess"];
|
||||
//old format for update date pre-2.12
|
||||
if (!updatedDate)
|
||||
{
|
||||
updatedDate = [fDefaults objectForKey: @"BlocklistLastUpdate"];
|
||||
[fDefaults setObject: updatedDate forKey: @"BlocklistNewLastUpdateSuccess"];
|
||||
[fDefaults removeObjectForKey: @"BlocklistLastUpdate"];
|
||||
}
|
||||
|
||||
if (updatedDate)
|
||||
{
|
||||
if ([NSApp isOnSnowLeopardOrBetter])
|
||||
|
||||
Reference in New Issue
Block a user