1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 14:10:34 +00:00

when showing/hiding group rows, fade them in/out instead of sliding them left

This commit is contained in:
Mitchell Livingston 2012-01-07 16:18:56 +00:00
parent abc1852ff8
commit 351f574f08

View file

@ -2358,7 +2358,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[fDisplayedTorrents addObject: newGroup];
if (onLion)
[fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationSlideLeft];
[fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationEffectFade];
}
else //if we haven't processed the other group yet, we have to make sure we don't flag it for removal the next time
{
@ -2401,7 +2401,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
[fDisplayedTorrents addObject: group];
if (onLion)
[fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationSlideLeft];
[fTableView insertItemsAtIndexes: [NSIndexSet indexSetWithIndex: [fDisplayedTorrents count]-1] inParent: nil withAnimation: NSTableViewAnimationEffectFade];
}
[[group torrents] addObject: torrent];
@ -2422,7 +2422,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{
[fDisplayedTorrents removeObjectsAtIndexes: removeIndexes];
if (onLion)
[fTableView removeItemsAtIndexes: removeIndexes inParent: nil withAnimation: NSTableViewAnimationSlideLeft];
[fTableView removeItemsAtIndexes: removeIndexes inParent: nil withAnimation: NSTableViewAnimationEffectFade];
}
//now that all groups are there, sort them - don't insert on the fly in case groups were reordered in prefs