mirror of
https://github.com/MacPass/MacPass.git
synced 2026-01-31 02:28:17 +00:00
Added option to show search after unlocking the database
This commit is contained in:
@@ -164,8 +164,8 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
/* enqueue async into main to catch some cases, where the UI would not set the responder correctly */
|
||||
MPDocumentWindowController * __weak welf = self;
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NSResponder *responder = ((MPViewController *)contentViewController).reconmendedFirstResponder;
|
||||
[welf.window makeFirstResponder:responder];
|
||||
NSResponder *responder = ((MPViewController *)contentViewController).reconmendedFirstResponder;
|
||||
[welf.window makeFirstResponder:responder];
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -189,6 +189,10 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
|
||||
- (void)_didUnlockDatabase:(NSNotification *)notification {
|
||||
[self showEntries];
|
||||
BOOL focusSearchAfterUnlock = [NSUserDefaults.standardUserDefaults boolForKey:kMPSettingsKeyFocusSearchAfterUnlock];
|
||||
if(focusSearchAfterUnlock) {
|
||||
[self.document performCustomSearch:self];
|
||||
}
|
||||
/* Show password reminders */
|
||||
[self _presentPasswordIntervalAlerts];
|
||||
}
|
||||
@@ -439,7 +443,7 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
|
||||
- (void)pickExpiryDate:(id)sender {
|
||||
// FIXME: use propert responder chain
|
||||
[self.splitViewController.inspectorViewController pickExpiryDate:sender];
|
||||
[self.splitViewController.inspectorViewController pickExpiryDate:sender];
|
||||
}
|
||||
|
||||
- (void)showPluginData:(id)sender {
|
||||
@@ -483,7 +487,6 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
|
||||
- (void)showEntries {
|
||||
self.contentViewController = self.splitViewController;
|
||||
[self.splitViewController showOutline];
|
||||
|
||||
}
|
||||
|
||||
- (void)showGroupInOutline:(id)sender {
|
||||
|
||||
Reference in New Issue
Block a user