mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
one less calculation
This commit is contained in:
parent
897f344b71
commit
e0d2b59931
1 changed files with 3 additions and 2 deletions
|
@ -635,9 +635,10 @@
|
|||
if (minimal)
|
||||
result.size.width -= PADDING_BETWEEN_TITLE_AND_MIN_STATUS + NSWidth(statusRect);
|
||||
if ([[self representedObject] priority] != TR_PRI_NORMAL)
|
||||
{
|
||||
result.size.width -= PRIORITY_ICON_WIDTH + PADDING_BETWEEN_TITLE_AND_PRIORITY;
|
||||
|
||||
result.size.width = MIN(result.size.width, [string size].width);
|
||||
result.size.width = MIN(result.size.width, [string size].width); //only need to force it smaller for the priority icon
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue