From 1455493a9f1d4378c19fdf1201a5220ba472a0e0 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Mon, 1 Jun 2026 20:58:03 -0700 Subject: [PATCH] Open Dinosaurs window at startup if needed. --- Mac/AppDelegate.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index b6feccbe0..3b6ef32fe 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -243,6 +243,10 @@ let appName = "NetNewsWire" showAccountStats(self) } + if DinosaurWindowController.shouldOpenAtStartup { + showDinosaursWindow(self) + } + ArticleThemesManager.shared.start() NetworkMonitor.shared.start() MemoryPressureMonitor.shared.start() @@ -590,6 +594,17 @@ let appName = "NetNewsWire" dinosaurWindowController!.showWindow(self) } + @objc func selectFeedInSidebar(_ sender: Any?) { + guard let feed = sender as? Feed else { + return + } + guard let mainWindowController else { + return + } + mainWindowController.showWindow(self) + mainWindowController.selectFeedInSidebar(feed) + } + @IBAction func showActivityWindow(_ sender: Any?) { if activityWindowController == nil { activityWindowController = ActivityWindowController() @@ -904,6 +919,7 @@ extension AppDelegate { activityLogWindowController?.saveState() errorLogWindowController?.saveState() accountStatsWindowController?.saveState() + dinosaurWindowController?.saveState() } @MainActor func updateSortMenuItems() {