mirror of
https://github.com/transmission/transmission
synced 2025-03-12 23:23:54 +00:00
remove unneeded variables
This commit is contained in:
parent
844f52b634
commit
aa304152af
1 changed files with 2 additions and 4 deletions
|
@ -274,8 +274,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
downloading++;
|
downloading++;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL shouldAsk = [fDefaults boolForKey: @"CheckQuitDownloading"] ? downloading > 0 : active > 0;
|
if ([fDefaults boolForKey: @"CheckQuitDownloading"] ? downloading > 0 : active > 0)
|
||||||
if (shouldAsk)
|
|
||||||
{
|
{
|
||||||
NSString * message = active == 1
|
NSString * message = active == 1
|
||||||
? @"There is an active transfer. Do you really want to quit?"
|
? @"There is an active transfer. Do you really want to quit?"
|
||||||
|
@ -531,8 +530,7 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL shouldAsk = [fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0;
|
if ([fDefaults boolForKey: @"CheckRemoveDownloading"] ? downloading > 0 : active > 0)
|
||||||
if (shouldAsk)
|
|
||||||
{
|
{
|
||||||
NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys:
|
NSDictionary * dict = [[NSDictionary alloc] initWithObjectsAndKeys:
|
||||||
torrents, @"Torrents",
|
torrents, @"Torrents",
|
||||||
|
|
Loading…
Add table
Reference in a new issue