Set each notification's subtitle as the informative text instead of the subtitle, so that it wraps to a second line.

This commit is contained in:
Mitchell Livingston
2012-08-05 03:10:56 +00:00
parent 3479946084
commit 678a65d9e3

View File

@@ -1965,7 +1965,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{
NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init];
[notification setTitle: NSLocalizedString(@"Download Complete", "notification title")];
[notification setSubtitle: [torrent name]];
[notification setInformativeText: [torrent name]];
[notification setHasActionButton: YES];
[notification setActionButtonTitle: NSLocalizedString(@"Reveal", "notification button")];
@@ -2025,7 +2025,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{
NSUserNotification * notification = [[NSUserNotificationMtLion alloc] init];
[notification setTitle: NSLocalizedString(@"Seeding Complete", "notification title")];
[notification setSubtitle: [torrent name]];
[notification setInformativeText: [torrent name]];
[notification setHasActionButton: YES];
[notification setActionButtonTitle: NSLocalizedString(@"Reveal", "notification button")];
@@ -2963,7 +2963,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
{
NSUserNotification* notification = [[NSUserNotificationMtLion alloc] init];
[notification setTitle: NSLocalizedString(@"Torrent File Auto Added", "notification title")];
[notification setSubtitle: file];
[notification setInformativeText: file];
[notification setHasActionButton: NO];