simplify getting string
This commit is contained in:
parent
3b7de9ceec
commit
c5badbf343
|
@ -286,11 +286,12 @@
|
||||||
|
|
||||||
- (void) updateInfoStats
|
- (void) updateInfoStats
|
||||||
{
|
{
|
||||||
if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_ACTIVITY_IDENT])
|
NSString * ident = [[fTabView selectedTabViewItem] identifier];
|
||||||
|
if ([ident isEqualToString: TAB_ACTIVITY_IDENT])
|
||||||
[self updateInfoActivity];
|
[self updateInfoActivity];
|
||||||
else if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_PEERS_IDENT])
|
else if ([ident isEqualToString: TAB_PEERS_IDENT])
|
||||||
[self updateInfoPeers];
|
[self updateInfoPeers];
|
||||||
else if ([[[fTabView selectedTabViewItem] identifier] isEqualToString: TAB_INFO_IDENT])
|
else if ([ident isEqualToString: TAB_INFO_IDENT])
|
||||||
[self updateInfoGeneral];
|
[self updateInfoGeneral];
|
||||||
else;
|
else;
|
||||||
}
|
}
|
||||||
|
@ -834,7 +835,6 @@
|
||||||
NSBeep();
|
NSBeep();
|
||||||
|
|
||||||
torrent = [enumerator nextObject]; //use first torrent
|
torrent = [enumerator nextObject]; //use first torrent
|
||||||
|
|
||||||
limit = upload ? [torrent uploadLimit] : [torrent downloadLimit];
|
limit = upload ? [torrent uploadLimit] : [torrent downloadLimit];
|
||||||
while ((torrent = [enumerator nextObject]))
|
while ((torrent = [enumerator nextObject]))
|
||||||
if (limit != (upload ? [torrent uploadLimit] : [torrent downloadLimit]))
|
if (limit != (upload ? [torrent uploadLimit] : [torrent downloadLimit]))
|
||||||
|
|
Loading…
Reference in New Issue