Make growl notifications a little more verbose.

This commit is contained in:
Mitchell Livingston 2006-07-08 14:35:03 +00:00
parent 6bcb612a95
commit 9abcf3aac0
2 changed files with 7 additions and 3 deletions

View File

@ -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"];
}
}

View File

@ -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"])))