From d901bbb218dde1d186745ef59e25f37131dbf906 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sun, 19 Nov 2017 12:46:29 -0800 Subject: [PATCH] Create a pseudoFeeds array held by the app delegate. Create the Today feed at startup. --- Evergreen/AppDelegate.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Evergreen/AppDelegate.swift b/Evergreen/AppDelegate.swift index a738f1d2b..ed250c269 100644 --- a/Evergreen/AppDelegate.swift +++ b/Evergreen/AppDelegate.swift @@ -40,6 +40,8 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations { private let appNewsURLString = "https://ranchero.com/evergreen/feed.json" private let dockBadge = DockBadge() + var pseudoFeeds = [PseudoFeed]() + var unreadCount = 0 { didSet { if unreadCount != oldValue { @@ -93,6 +95,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserInterfaceValidations { DefaultFeedsImporter.importIfNeeded(isFirstRun, account: localAccount) currentTheme = themeLoader.defaultTheme + + let todayFeed = PseudoFeed(delegate: TodayFeedDelegate()) + pseudoFeeds += [todayFeed] createAndShowMainWindow()