Updated german and english localizations

This commit is contained in:
Michael Starke
2019-07-12 16:03:58 +02:00
parent 3191e56e58
commit 9a625dd57d
13 changed files with 98 additions and 38 deletions

View File

@@ -264,7 +264,7 @@ static MPAutotypeDaemon *_sharedInstance;
if(candidates == 1 ) {
return autotypeCandidates.lastObject;
}
[self _presentSelectionWindow:autotypeCandidates];
[self _presentCandiadates:autotypeCandidates forWindowTitle:windowTitle];
return nil; // Nothing to do, we get called back by the window
}
@@ -352,7 +352,7 @@ static MPAutotypeDaemon *_sharedInstance;
return infoDict;
}
- (void)_presentSelectionWindow:(NSArray *)candidates {
- (void)_presentCandiadates:(NSArray *)candidates forWindowTitle:(NSString *)windowTitle {
if(!self.matchSelectionWindow) {
self.matchSelectionWindow = [[NSPanel alloc] initWithContentRect:NSMakeRect(0, 0, 100, 100)
styleMask:NSWindowStyleMaskNonactivatingPanel|NSWindowStyleMaskTitled
@@ -361,6 +361,7 @@ static MPAutotypeDaemon *_sharedInstance;
self.matchSelectionWindow.level = kCGAssistiveTechHighWindowLevel;
MPAutotypeCandidateSelectionViewController *vc = [[MPAutotypeCandidateSelectionViewController alloc] init];
vc.candidates = candidates;
vc.windowTitle = windowTitle;
self.matchSelectionWindow.collectionBehavior |= (NSWindowCollectionBehaviorFullScreenAuxiliary |
NSWindowCollectionBehaviorMoveToActiveSpace |
NSWindowCollectionBehaviorTransient );