Play sound when seeding completes.

This commit is contained in:
Mitchell Livingston
2006-08-07 01:03:14 +00:00
parent accc03084c
commit 874b50ac84
7 changed files with 18 additions and 5 deletions

View File

@@ -1344,6 +1344,13 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
[self applyFilter: nil];
[fInfoController updateInfoStatsAndSettings];
if ([fDefaults boolForKey: @"PlaySeedingSound"])
{
NSSound * sound;
if ((sound = [NSSound soundNamed: @"Submarine"]))
[sound play];
}
[GrowlApplicationBridge notifyWithTitle: @"Seeding Complete" description: [[notification object] name]
notificationName: GROWL_SEEDING_COMPLETE iconData: nil priority: 0 isSticky: NO clickContext: nil];
}