1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-24 03:25:03 +03:00

Fix tabs demo app

This commit is contained in:
Tae Won Ha 2020-12-13 15:22:37 +01:00
parent f9776d91d9
commit beefb1a0be
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit a5cda7ab69b9b8e1b13b37d5f598f37babda6493
Subproject commit 640c1d1b2c2eeb02cdbcc281c5c9d333680ec89d

View File

@ -27,7 +27,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
tb.autoPinEdge(toSuperviewEdge: .left)
tb.autoPinEdge(toSuperviewEdge: .right)
tb.autoSetDimension(.height, toSize: Theme().tabBarHeight)
tb.selectHandler = { [weak self] _, selectedEntry in
tb.selectHandler = { [weak self] _, selectedEntry, entries in
self?.tabEntries.enumerated().forEach { index, entry in
self?.tabEntries[index].isSelected = (entry == selectedEntry)
}