mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
animate toggling minimal view (on Lion)
This commit is contained in:
parent
2dc746a7b6
commit
65ad4fbcb9
1 changed files with 4 additions and 0 deletions
|
@ -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"])
|
||||||
|
|
Loading…
Reference in a new issue