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:
parent
f50bde4f27
commit
f2a6d79928
2 changed files with 10 additions and 7 deletions
|
@ -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];
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue