From 92ba91161abdb0883d07d5b0ff19be229fdf6889 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 24 Jul 2007 01:04:01 +0000 Subject: [PATCH] hide the pause button when checking --- macosx/Torrent.m | 2 +- macosx/TorrentTableView.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index fe1951c6e..e40935de9 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -539,7 +539,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 { tr_torrentStop(fHandle); [self update]; - + [[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateQueue" object: self]; } } diff --git a/macosx/TorrentTableView.m b/macosx/TorrentTableView.m index 10978a28a..821bb7db0 100644 --- a/macosx/TorrentTableView.m +++ b/macosx/TorrentTableView.m @@ -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];