Only clear find status string for non-folder search

I find myself often closing folder search results and later re-opening (via ⇧⌘F) which would previously have the status string cleared, yet the results still showing.

Status should probably be stored together with the folder search results, so when toggling between document and folder search, the status string would follow as well.
This commit is contained in:
Allan Odgaard
2013-04-27 13:57:41 +07:00
parent 1df2eb42c8
commit fda19c565d

View File

@@ -494,7 +494,8 @@ static NSProgressIndicator* OakCreateProgressIndicator ()
if([self isWindowLoaded] && ![self.window isVisible])
{
self.showsResultsOutlineView = self.folderSearch;
self.statusString = @"";
if(!self.folderSearch)
self.statusString = @"";
}
BOOL isVisibleAndKey = [self isWindowLoaded] && [self.window isVisible] && [self.window isKeyWindow];