mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 11:12:24 +00:00
Added notes for refactoring
This commit is contained in:
@@ -92,6 +92,8 @@ FOUNDATION_EXPORT NSString *const MPDocumentGroupKey;
|
||||
|
||||
/*
|
||||
Search - see MPDocument+Search for further details
|
||||
|
||||
FIXME: Document is pinned to mode bases search. Wrong design!
|
||||
*/
|
||||
@property (nonatomic, readonly) BOOL hasSearch;
|
||||
@property (nonatomic, copy) MPEntrySearchContext *searchContext;
|
||||
|
||||
@@ -463,6 +463,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
||||
|
||||
- (void)_didAddItem:(NSNotification *)notification {
|
||||
MPDocument *document = notification.object;
|
||||
// FIXME: UI should know search state not document!
|
||||
if(document.hasSearch) {
|
||||
return; // Search should not react to new Entries as it's displaying search results
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user