TabController: More sensible next tab auto-selection
This commit is contained in:
@@ -43,7 +43,11 @@ class TabController
|
||||
tabs.remove(at: index)
|
||||
|
||||
if tabs.count > 0 {
|
||||
activeTabIndex = tabs.count - 1
|
||||
if index < tabs.count {
|
||||
activeTabIndex = index
|
||||
} else {
|
||||
activeTabIndex = tabs.count - 1
|
||||
}
|
||||
} else {
|
||||
_ = createNewTab(url: nil)
|
||||
activeTabIndex = 0
|
||||
|
||||
Reference in New Issue
Block a user