Add a SmartFeedType to smart feeds so the sidebar can tell them apart.

This commit is contained in:
Brent Simmons
2019-08-13 20:28:28 -07:00
parent 62258683c8
commit cf1b3843ee
3 changed files with 15 additions and 4 deletions

View File

@@ -455,7 +455,7 @@ extension MainWindowController: NSSearchFieldDelegate {
return
}
lastSentSearchString = searchString
let smartFeed = SmartFeed(delegate: SearchFeedDelegate(searchString: searchString))
let smartFeed = SmartFeed(delegate: SearchFeedDelegate(searchString: searchString), type: .search)
timelineContainerViewController?.setRepresentedObjects([smartFeed], mode: .search)
searchSmartFeed = smartFeed
}