1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 10:07:40 +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:
Mitchell Livingston 2009-12-10 13:06:04 +00:00
parent a1ccd10f89
commit a9cabe918c

View file

@ -158,7 +158,7 @@
[fLock lock]; [fLock lock];
NSUInteger currentIndex = [fMessages count] > 0 ? ([[[fMessages lastObject] objectForKey: @"Index"] unsignedIntegerValue] + 1) : 0; static NSUInteger currentIndex = 0;
NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller]; NSScroller * scroller = [[fMessageTable enclosingScrollView] verticalScroller];
const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden] const BOOL shouldScroll = currentIndex == 0 || [scroller floatValue] == 1.0 || [scroller isHidden]