1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-10 14:13:23 +00:00

one more tweak

This commit is contained in:
Mitchell Livingston 2009-12-10 05:28:45 +00:00
parent 23b652d2bc
commit 123c8e72ce

View file

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