1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-24 22:33:52 +03:00

Do GUI things on main queue

This commit is contained in:
Tae Won Ha 2017-12-17 10:44:32 +01:00
parent 4996f95c45
commit 2e5b1b3a2a
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -56,6 +56,7 @@ extension NvimView: NSTouchBarDelegate, NSScrubberDataSource, NSScrubberDelegate
func updateTouchBarCurrentBuffer() {
self
.allTabs()
.observeOn(MainScheduler.instance)
.subscribe(onSuccess: {
self.tabsCache = $0
@ -73,6 +74,7 @@ extension NvimView: NSTouchBarDelegate, NSScrubberDataSource, NSScrubberDelegate
func updateTouchBarTab() {
self
.allTabs()
.observeOn(MainScheduler.instance)
.subscribe(onSuccess: {
self.tabsCache = $0