1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

animate toggling minimal view (on Lion)

This commit is contained in:
Mitchell Livingston 2011-08-24 03:01:51 +00:00
parent 2dc746a7b6
commit 65ad4fbcb9

View file

@ -2783,7 +2783,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[fTableView setRowHeight: makeSmall ? ROW_HEIGHT_SMALL : ROW_HEIGHT_REGULAR]; [fTableView setRowHeight: makeSmall ? ROW_HEIGHT_SMALL : ROW_HEIGHT_REGULAR];
if ([NSApp isOnLionOrBetter])
[fTableView beginUpdates];
[fTableView noteHeightOfRowsWithIndexesChanged: [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTableView numberOfRows])]]; [fTableView noteHeightOfRowsWithIndexesChanged: [NSIndexSet indexSetWithIndexesInRange: NSMakeRange(0, [fTableView numberOfRows])]];
if ([NSApp isOnLionOrBetter])
[fTableView endUpdates];
//resize for larger min height if not set to auto size //resize for larger min height if not set to auto size
if (![fDefaults boolForKey: @"AutoSize"]) if (![fDefaults boolForKey: @"AutoSize"])