1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

always show proper text for the orange resume button

This commit is contained in:
Mitchell Livingston 2008-12-21 02:45:55 +00:00
parent f77ae353bb
commit 6116b34c94

View file

@ -379,7 +379,7 @@
{
Torrent * torrent = [self representedObject];
BOOL minimal = [fDefaults boolForKey: @"SmallView"];
const BOOL minimal = [fDefaults boolForKey: @"SmallView"];
//group coloring
NSRect iconRect = [self iconRectForBounds: cellFrame];
@ -412,7 +412,7 @@
}
//error image
BOOL error = [torrent isError];
const BOOL error = [torrent isError];
if (error && !fErrorImage)
{
fErrorImage = [NSImage imageNamed: @"Error.png"];
@ -791,7 +791,7 @@
return NSLocalizedString(@"Pause the transfer", "Torrent Table -> tooltip");
else
{
if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask && [fDefaults boolForKey: @"Queue"])
if ([[NSApp currentEvent] modifierFlags] & NSAlternateKeyMask)
return NSLocalizedString(@"Resume the transfer right away", "Torrent cell -> button info");
else if ([torrent waitingToStart])
return NSLocalizedString(@"Stop waiting to start", "Torrent cell -> button info");