mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
hide the pause button when checking
This commit is contained in:
+1
-1
@@ -539,7 +539,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||
{
|
||||
tr_torrentStop(fHandle);
|
||||
[self update];
|
||||
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,8 +247,8 @@
|
||||
{
|
||||
torrent = [fTorrents objectAtIndex: i];
|
||||
rect = [self pauseRectForRow: i];
|
||||
|
||||
if ([torrent isActive])
|
||||
|
||||
if ([torrent isActive] && ![torrent isChecking])
|
||||
image = NSPointInRect(fClickPoint, rect) ? fPauseOnIcon : fPauseOffIcon;
|
||||
else if ([torrent isPaused])
|
||||
{
|
||||
@@ -261,7 +261,7 @@
|
||||
}
|
||||
else
|
||||
image = nil;
|
||||
|
||||
|
||||
if (image)
|
||||
[image compositeToPoint: NSMakePoint(rect.origin.x, NSMaxY(rect)) operation: NSCompositeSourceOver];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user