mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 06:29:30 +00:00
Broken commit - refactoring search
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
#import "MPPasteBoardController.h"
|
||||
#import "MPOverlayWindowController.h"
|
||||
#import "MPContextBarViewController.h"
|
||||
#import "MPEntryFilterHelper.h"
|
||||
#import "MPDocumentSearchService.h"
|
||||
|
||||
#import "MPContextMenuHelper.h"
|
||||
#import "MPActionHelper.h"
|
||||
@@ -335,7 +335,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
dispatch_async(backgroundQueue, ^{
|
||||
MPDocument *document = [[self windowController] document];
|
||||
|
||||
self.filteredEntries = [MPEntryFilterHelper entriesInDocument:document
|
||||
self.filteredEntries = [MPDocumentSearchService entriesInDocument:document
|
||||
matching:self.contextBarViewController.filterString
|
||||
usingFilterMode:self.contextBarViewController.filterMode];
|
||||
|
||||
@@ -353,6 +353,10 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
[self _showContextBar];
|
||||
}
|
||||
|
||||
- (void)clearFilter:(id)sender {
|
||||
[self.contextBarViewController exitFilter:sender];
|
||||
}
|
||||
|
||||
#pragma mark ContextBar
|
||||
- (void)_showTrashBar {
|
||||
[self.contextBarViewController showTrash];
|
||||
|
||||
Reference in New Issue
Block a user