From a322996ab9cf95a648e397a2b274cf8c0ea490fd Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 15 Aug 2016 11:39:18 +0200 Subject: [PATCH] Fixed swapped notification messages --- MacPass/MPAutotypeDaemon.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MacPass/MPAutotypeDaemon.m b/MacPass/MPAutotypeDaemon.m index 74e22d5b..5d18968c 100644 --- a/MacPass/MPAutotypeDaemon.m +++ b/MacPass/MPAutotypeDaemon.m @@ -160,8 +160,12 @@ static MPAutotypeDaemon *_sharedInstance; if(!entryOrNil) { NSUserNotification *notification = [[NSUserNotification alloc] init]; notification.title = NSApp.applicationName; - notification.informativeText = context ? [NSString stringWithFormat:NSLocalizedString(@"AUTOTYPE_OVERLAY_NO_MATCH_FOR_%@", ""), self.targetWindowTitle] : NSLocalizedString(@"AUTOTYPE_OVERLAY_NO_MATCH", ""); - + if(context) { + notification.informativeText = NSLocalizedString(@"AUTOTYPE_OVERLAY_SINGLE_MATCH", ""); + } + else { + notification.informativeText = [NSString stringWithFormat:NSLocalizedString(@"AUTOTYPE_OVERLAY_NO_MATCH_FOR_%@", ""), self.targetWindowTitle]; + } [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification]; } [self _performAutotypeForContext:context];