From 9abcf3aac0a4dbc5d3ac3507ac0d8dc01195e0ae Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 8 Jul 2006 14:35:03 +0000 Subject: [PATCH] Make growl notifications a little more verbose. --- macosx/Controller.m | 9 ++++++--- macosx/Torrent.m | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index fa2a4ff35..b934b85f9 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -788,7 +788,8 @@ static void sleepCallBack(void * controller, io_service_t y, [self checkWaitingForFinished: torrent]; //notifications - [self notifyGrowl: @"Download Complete" message: [torrent name] identifier: @"Download Complete"]; + [self notifyGrowl: @"Download Complete" message: [[torrent name] stringByAppendingString: + @" is finished downloading"] identifier: @"Download Complete"]; if (![fWindow isKeyWindow]) fCompleted++; } @@ -1075,7 +1076,8 @@ static void sleepCallBack(void * controller, io_service_t y, { [fInfoController updateInfoStatsAndSettings]; - [self notifyGrowl: @"Seeding Complete" message: [[notification object] name] identifier: @"Seeding Complete"]; + [self notifyGrowl: @"Seeding Complete" message: [[[notification object] name] stringByAppendingString: + @" is finished seeding"] identifier: @"Seeding Complete"]; } - (void) attemptToStartAuto: (Torrent *) torrent @@ -1183,7 +1185,8 @@ static void sleepCallBack(void * controller, io_service_t y, //import only actually happened if the torrent array is larger if (oldCount < [fTorrents count]) - [self notifyGrowl: @"Torrent File Auto Added" message: file identifier: @"Torrent Auto Added"]; + [self notifyGrowl: @"Torrent File Auto Added" message: [file stringByAppendingString: + @" added to Transmission"] identifier: @"Torrent Auto Added"]; } } diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 14c45f626..18a190b6e 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -142,6 +142,7 @@ { fStat = tr_torrentStat(fHandle); + //check to stop for ratio if ([self isSeeding] && ((fStopRatioSetting == RATIO_CHECK && [self ratio] >= fRatioLimit) || (fStopRatioSetting == RATIO_GLOBAL && [fDefaults boolForKey: @"RatioCheck"] && [self ratio] >= [fDefaults floatForKey: @"RatioLimit"])))