mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
warnings--
This commit is contained in:
parent
6bcce280dc
commit
bf3bdda68f
2 changed files with 5 additions and 3 deletions
|
@ -244,7 +244,6 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
|||
|
||||
tr_bencDictAddBool(&settings, TR_PREFS_KEY_BLOCKLIST_ENABLED, [fDefaults boolForKey: @"Blocklist"]);
|
||||
|
||||
#warning update when changing in prefs
|
||||
tr_bencDictAddStr(&settings, TR_PREFS_KEY_DOWNLOAD_DIR, [[[fDefaults stringForKey: @"DownloadFolder"]
|
||||
stringByExpandingTildeInPath] UTF8String]);
|
||||
|
||||
|
|
|
@ -1235,7 +1235,6 @@ tr_session * fHandle;
|
|||
const int upLimit = tr_sessionGetSpeedLimit(fHandle, TR_UP);
|
||||
[fDefaults setInteger: upLimit forKey: @"UploadLimit"];
|
||||
|
||||
#warning fix
|
||||
//alt speed limit enabled
|
||||
const BOOL useAltSpeed = tr_sessionUsesAltSpeed(fHandle);
|
||||
[fDefaults setBool: useAltSpeed forKey: @"SpeedLimit"];
|
||||
|
@ -1383,8 +1382,12 @@ tr_session * fHandle;
|
|||
if (code == NSOKButton)
|
||||
{
|
||||
[fFolderPopUp selectItemAtIndex: DOWNLOAD_FOLDER];
|
||||
[fDefaults setObject: [[openPanel filenames] objectAtIndex: 0] forKey: @"DownloadFolder"];
|
||||
|
||||
NSString * folder = [[openPanel filenames] objectAtIndex: 0];
|
||||
[fDefaults setObject: folder forKey: @"DownloadFolder"];
|
||||
[fDefaults setObject: @"Constant" forKey: @"DownloadChoice"];
|
||||
|
||||
tr_sessionSetDownloadDir(fHandle, [folder UTF8String]);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue