mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
better preservation of old download location
This commit is contained in:
@@ -63,6 +63,16 @@
|
||||
[fDefaults setBool: NO forKey: @"CheckUpload"];
|
||||
}
|
||||
|
||||
//check for old version download location
|
||||
if ([fDefaults stringForKey: @"DownloadChoice"])
|
||||
{
|
||||
NSString * choice = [fDefaults stringForKey: @"DownloadChoice"];
|
||||
[fDefaults setBool: [choice isEqualToString: @"Constant"] forKey: @"DownloadLocationConstant"];
|
||||
[fDefaults setBool: [choice isEqualToString: @"Ask"] forKey: @"DownloadAsk"];
|
||||
|
||||
[fDefaults removeObjectForKey: @"DownloadChoice"];
|
||||
}
|
||||
|
||||
//set check for update to right value
|
||||
[self setCheckForUpdate: nil];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user