mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Fix crashing bug in Starred widget.
This commit is contained in:
@@ -78,10 +78,11 @@ struct StarredWidgetView : View {
|
||||
reduceAccessibilityCount = 1
|
||||
}
|
||||
|
||||
let starredCount = entry.widgetData.starredArticles.count
|
||||
if family == .systemLarge {
|
||||
return entry.widgetData.currentStarredCount >= 7 ? (7 - reduceAccessibilityCount) : entry.widgetData.currentStarredCount
|
||||
return starredCount >= 7 ? (7 - reduceAccessibilityCount) : starredCount
|
||||
}
|
||||
return entry.widgetData.currentStarredCount >= 3 ? (3 - reduceAccessibilityCount) : entry.widgetData.currentStarredCount
|
||||
return starredCount >= 3 ? (3 - reduceAccessibilityCount) : starredCount
|
||||
}
|
||||
|
||||
var inboxZero: some View {
|
||||
|
||||
Reference in New Issue
Block a user