mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-04 21:07:40 +01:00
Don't crash on early calls to update the toolbar
This commit is contained in:
parent
58498ef33e
commit
e2de38647a
@ -626,8 +626,11 @@ private extension MasterTimelineViewController {
|
||||
}
|
||||
|
||||
func updateToolbar() {
|
||||
guard firstUnreadButton != nil else { return }
|
||||
|
||||
markAllAsReadButton.isEnabled = coordinator.isTimelineUnreadAvailable
|
||||
firstUnreadButton.isEnabled = coordinator.isTimelineUnreadAvailable
|
||||
|
||||
if coordinator.isRootSplitCollapsed {
|
||||
if let toolbarItems = toolbarItems, toolbarItems.last != firstUnreadButton {
|
||||
var items = toolbarItems
|
||||
|
Loading…
x
Reference in New Issue
Block a user