mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-29 00:31:14 +00:00
Merge pull request #4877 from stuartbreckenridge/main
Minor fixes for 7.0
This commit is contained in:
3 files changed
+17
-5
No files matched your search
+1
-1
@@ -128,7 +128,7 @@ struct Assets {
|
||||
|
||||
static var circleClosed: RSImage { RSImage(symbol: "largecircle.fill.circle")! }
|
||||
static var markBelowAsRead: RSImage { RSImage(symbol: "arrowtriangle.down.circle")! }
|
||||
static var markAboveAsRead: RSImage { RSImage(named: "arrowtriangle.up.circle")! }
|
||||
static var markAboveAsRead: RSImage { RSImage(symbol: "arrowtriangle.up.circle")! }
|
||||
static var more: RSImage { RSImage(symbol: "ellipsis.circle")! }
|
||||
static var nextArticle: RSImage { RSImage(symbol: "chevron.down")! }
|
||||
static var circleOpen: RSImage { RSImage(symbol: "circle")! }
|
||||
|
||||
@@ -219,7 +219,7 @@ final class MainTimelineViewController: UITableViewController, UndoableCommandRu
|
||||
}
|
||||
//navigationItem.subtitle = "" // don't inherit feeds subtitle on push
|
||||
updateNavigationBarTitle(coordinator?.timelineFeed?.nameForDisplay ?? "")
|
||||
updateNavigationBarSubtitle("")
|
||||
coordinator?.updateNavigationBarSubtitles(nil)
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
|
||||
@@ -655,9 +655,22 @@ struct FeedNode: Hashable, Sendable {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
self.mainFeedCollectionViewController?.navigationItem.subtitle = ""
|
||||
self.mainTimelineViewController?.updateNavigationBarSubtitle("")
|
||||
// If unread count > 0, add unread string to timeline
|
||||
if let _ = timelineFeed, timelineUnreadCount > 0 {
|
||||
let localizedUnreadCount = NSLocalizedString("%i Unread", comment: "14 Unread")
|
||||
let refreshTextWithUnreadCount = NSString.localizedStringWithFormat(localizedUnreadCount as NSString, timelineUnreadCount) as String
|
||||
self.mainTimelineViewController?.updateNavigationBarSubtitle(refreshTextWithUnreadCount)
|
||||
} else {
|
||||
// When unread count == 0, iPhone timeline displays Updated Just Now; iPad is blank
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
self.mainTimelineViewController?.updateNavigationBarSubtitle(NSLocalizedString("Updated Just Now", comment: "Updated Just Now"))
|
||||
} else {
|
||||
self.mainTimelineViewController?.updateNavigationBarSubtitle("")
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Updating in progress, apply to both iPhone and iPad Feeds.
|
||||
@@ -665,7 +678,6 @@ struct FeedNode: Hashable, Sendable {
|
||||
}
|
||||
|
||||
scheduleNavigationBarSubtitleUpdate()
|
||||
|
||||
}
|
||||
|
||||
func scheduleNavigationBarSubtitleUpdate() {
|
||||
|
||||
Reference in new issue
Block a user