1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-20 13:16:53 +00:00

better preservation of old download location

This commit is contained in:
Mitchell Livingston 2008-01-05 01:48:55 +00:00
parent f50bde4f27
commit f2a6d79928
2 changed files with 10 additions and 7 deletions

View file

@ -224,13 +224,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
[fIPCController setPrefsController: fPrefsController];
fRemoteQuit = NO;
//setting from previous
if ([[fDefaults stringForKey: @"DownloadChoice"] isEqualToString: @"Constant"])
{
[fDefaults setBool: YES forKey: @"DownloadLocationConstant"];
[fDefaults removeObjectForKey: @"DownloadChoice"];
}
[GrowlApplicationBridge setGrowlDelegate: self];
[[UKKQueue sharedFileWatcher] setDelegate: self];
}

View file

@ -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];