Make PseudoFeed conform to SmallIconProvider.

This commit is contained in:
Brent Simmons 2017-12-17 10:51:05 -08:00
parent 6205532ab1
commit 5be4c2b543

View File

@ -10,9 +10,20 @@ import Foundation
import Data
import RSCore
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider {
protocol PseudoFeed: class, DisplayNameProvider, UnreadCountProvider, SmallIconProvider {
}
private var smartFeedIcon: NSImage = {
return NSImage(named: NSImage.Name.smartBadgeTemplate)!
}()
extension PseudoFeed {
var smallIcon: NSImage? {
get {
return smartFeedIcon
}
}
}