mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-20 14:33:04 +01:00
Make PseudoFeed conform to SmallIconProvider.
This commit is contained in:
parent
6205532ab1
commit
5be4c2b543
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user