diff --git a/MacPass/Base.lproj/AutotypeBuilderView.xib b/MacPass/Base.lproj/AutotypeBuilderView.xib index 611f64b8..e1f86034 100644 --- a/MacPass/Base.lproj/AutotypeBuilderView.xib +++ b/MacPass/Base.lproj/AutotypeBuilderView.xib @@ -1,8 +1,8 @@ - + - + @@ -19,7 +19,7 @@ - + @@ -31,13 +31,13 @@ - + @@ -45,7 +45,7 @@ - + @@ -53,7 +53,7 @@ - + diff --git a/MacPass/Base.lproj/AutotypeCandidateSelectionView.xib b/MacPass/Base.lproj/AutotypeCandidateSelectionView.xib index 726f3053..f6ed2ed4 100644 --- a/MacPass/Base.lproj/AutotypeCandidateSelectionView.xib +++ b/MacPass/Base.lproj/AutotypeCandidateSelectionView.xib @@ -17,8 +17,8 @@ - - + + - + @@ -57,7 +57,7 @@ DQ - + @@ -76,13 +76,13 @@ DQ - + - + - + @@ -100,8 +100,8 @@ DQ - - + + @@ -157,9 +157,6 @@ DQ - - - diff --git a/MacPass/MPAutotypeCandidateSelectionViewController.m b/MacPass/MPAutotypeCandidateSelectionViewController.m index a15ff41c..9796d012 100644 --- a/MacPass/MPAutotypeCandidateSelectionViewController.m +++ b/MacPass/MPAutotypeCandidateSelectionViewController.m @@ -56,10 +56,13 @@ if(self.candidates.count > 1) { template = NSLocalizedString(@"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@_%@", "Message text in the autotype selection window. Placeholder is %1 - applicationName, %2 windowTitle"); self.messageTextField.stringValue = [NSString stringWithFormat:template, targetApplication.localizedName, self.environment.windowTitle]; + NSInteger rows = MIN(self.candidates.count, 5); + [self.contextTableView.enclosingScrollView.heightAnchor constraintGreaterThanOrEqualToConstant:39 * rows].active = YES; } else { template = NSLocalizedString(@"AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%@_%@", "Message text in the autotype confirmation window. Placeholder is %1 - applicationName, %2 windowTitle"); self.messageTextField.stringValue = [NSString stringWithFormat:template, targetApplication.localizedName, self.environment.windowTitle]; + [self.contextTableView.enclosingScrollView.heightAnchor constraintEqualToConstant:39].active = YES; } NSNotification *notification = [NSNotification notificationWithName:NSTableViewSelectionDidChangeNotification object:self.contextTableView]; diff --git a/MacPass/MPTOTPSetupViewController.xib b/MacPass/MPTOTPSetupViewController.xib index a59a8aed..7f42fdaf 100644 --- a/MacPass/MPTOTPSetupViewController.xib +++ b/MacPass/MPTOTPSetupViewController.xib @@ -79,12 +79,12 @@ - + - + @@ -138,12 +138,12 @@ - + - + diff --git a/MacPass/en.lproj/Localizable.strings b/MacPass/en.lproj/Localizable.strings index f1f097ba..f4925437 100644 --- a/MacPass/en.lproj/Localizable.strings +++ b/MacPass/en.lproj/Localizable.strings @@ -96,10 +96,10 @@ "AUTOCREATE_TRASH_FOLDER" = "Create Automatically"; /* Message text in the autotype confirmation window. Placeholder is %1 - applicationName, %2 windowTitle */ -"AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%@_%@" = "AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%1$@_%2$@"; +"AUTOTYPE_CANDIDATE_CONFIRMATION_WINDOW_MESSAGE_%@_%@" = "Autotype has found a match for window \"%2$@\" of application \"%1$@\". Please confirm to continue the execution."; /* Message text in the autotype selection window. Placeholder is %1 - applicationName, %2 windowTitle */ -"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@_%@" = "There are multiple matches for the window %2$@ of application %1$@. Please select which match should be used."; +"AUTOTYPE_CANDIDATE_SELECTION_WINDOW_MESSAGE_%@_%@" = "There are multiple matches for the window \"%2$@\" of application \"%1$@\". Please select which match should be used."; /* Window title for the stand-alone password creator window */ "AUTOTYPE_DOCTOR_RESULTS_WINDOW_TITLE" = "Autotype Doctor";