mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-29 11:00:59 +01:00
Create a pseudoFeeds array held by the app delegate. Create the Today feed at startup.
This commit is contained in:
parent
83cee90929
commit
d901bbb218
@ -40,6 +40,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations {
|
|||||||
private let appNewsURLString = "https://ranchero.com/evergreen/feed.json"
|
private let appNewsURLString = "https://ranchero.com/evergreen/feed.json"
|
||||||
private let dockBadge = DockBadge()
|
private let dockBadge = DockBadge()
|
||||||
|
|
||||||
|
var pseudoFeeds = [PseudoFeed]()
|
||||||
|
|
||||||
var unreadCount = 0 {
|
var unreadCount = 0 {
|
||||||
didSet {
|
didSet {
|
||||||
if unreadCount != oldValue {
|
if unreadCount != oldValue {
|
||||||
@ -94,6 +96,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations {
|
|||||||
|
|
||||||
currentTheme = themeLoader.defaultTheme
|
currentTheme = themeLoader.defaultTheme
|
||||||
|
|
||||||
|
let todayFeed = PseudoFeed(delegate: TodayFeedDelegate())
|
||||||
|
pseudoFeeds += [todayFeed]
|
||||||
|
|
||||||
createAndShowMainWindow()
|
createAndShowMainWindow()
|
||||||
|
|
||||||
#if RELEASE
|
#if RELEASE
|
||||||
|
Loading…
Reference in New Issue
Block a user