Fix forwards butto not being disabled when going to a new page

This commit is contained in:
Shadowfacts 2020-12-20 13:47:49 -05:00
parent 2b06a826ae
commit be2e087a9e
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ class ToolbarView: UIView {
stack.bottomAnchor.constraint(equalTo: safeAreaLayoutGuide.bottomAnchor),
])
navigator.$currentURL
navigator.navigationOperation
.sink { (_) in
self.backButton.isEnabled = navigator.backStack.count > 0
self.forwardsButton.isEnabled = navigator.forwardStack.count > 0