mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
#5404 Coalesce multiple Speed Limit Auto Enabled/Disabled notifications
This commit is contained in:
@@ -2930,11 +2930,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||
[fStatusBar updateSpeedFieldsToolTips];
|
||||
|
||||
if (![[dict objectForKey: @"ByUser"] boolValue])
|
||||
[GrowlApplicationBridge notifyWithTitle: isLimited
|
||||
? NSLocalizedString(@"Speed Limit Auto Enabled", "Growl notification title")
|
||||
: NSLocalizedString(@"Speed Limit Auto Disabled", "Growl notification title")
|
||||
description: NSLocalizedString(@"Bandwidth settings changed", "Growl notification description")
|
||||
notificationName: GROWL_AUTO_SPEED_LIMIT iconData: nil priority: 0 isSticky: NO clickContext: nil];
|
||||
[GrowlApplicationBridge notifyWithTitle: isLimited ? NSLocalizedString(@"Speed Limit Auto Enabled", "Growl notification title") : NSLocalizedString(@"Speed Limit Auto Disabled", "Growl notification title")
|
||||
description: NSLocalizedString(@"Bandwidth settings changed", "Growl notification description")
|
||||
notificationName: GROWL_AUTO_SPEED_LIMIT
|
||||
iconData: nil
|
||||
priority: 0
|
||||
isSticky: NO
|
||||
clickContext: nil
|
||||
identifier: GROWL_AUTO_SPEED_LIMIT];
|
||||
|
||||
[dict release];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user