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…
Reference in New Issue