Tab picker: Allow multiple selection/deletion
This commit is contained in:
@@ -251,9 +251,11 @@ class BrowserViewController: UIViewController, WKNavigationDelegate, WKUIDelegat
|
||||
activeTabObservation = tabController.$activeTabIndex
|
||||
.receive(on: RunLoop.main)
|
||||
.sink(receiveValue: { [unowned self] (activeTab: Int) in
|
||||
let tab = tabController.tabs[activeTab]
|
||||
if self.tab != tab {
|
||||
self.tab = tab
|
||||
if activeTab < tabController.tabs.count {
|
||||
let tab = tabController.tabs[activeTab]
|
||||
if self.tab != tab {
|
||||
self.tab = tab
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user