mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
Fix crashing bug in Starred widget.
This commit is contained in:
1 parent
8c14c98664
commit
a3443b2f6d
1 file changed
+3
-2
@@ -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