mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-17 23:09:32 +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
|
Search - see MPDocument+Search for further details
|
||||||
|
|
||||||
|
FIXME: Document is pinned to mode bases search. Wrong design!
|
||||||
*/
|
*/
|
||||||
@property (nonatomic, readonly) BOOL hasSearch;
|
@property (nonatomic, readonly) BOOL hasSearch;
|
||||||
@property (nonatomic, copy) MPEntrySearchContext *searchContext;
|
@property (nonatomic, copy) MPEntrySearchContext *searchContext;
|
||||||
|
|||||||
@@ -463,6 +463,7 @@ NSString *const _MPTableSecurCellView = @"PasswordCell";
|
|||||||
|
|
||||||
- (void)_didAddItem:(NSNotification *)notification {
|
- (void)_didAddItem:(NSNotification *)notification {
|
||||||
MPDocument *document = notification.object;
|
MPDocument *document = notification.object;
|
||||||
|
// FIXME: UI should know search state not document!
|
||||||
if(document.hasSearch) {
|
if(document.hasSearch) {
|
||||||
return; // Search should not react to new Entries as it's displaying search results
|
return; // Search should not react to new Entries as it's displaying search results
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user