mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
return to using a static NSUInteger for message index - even if never reset, it's never going to hit its max and this is much simpler
This commit is contained in:
parent
a1ccd10f89
commit
a9cabe918c
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@
|
|||
|
||||
[fLock lock];
|
||||
|
||||
NSUInteger currentIndex = [fMessages count] > 0 ? ([[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] + 1) : 0;
|
||||
static NSUInteger currentIndex = 0;
|
||||
|
||||
NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller];
|
||||
const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden]
|
||||
|
|
Loading…
Reference in a new issue