1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 23:02:35 +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() { func updateTouchBarCurrentBuffer() {
self self
.allTabs() .allTabs()
.observeOn(MainScheduler.instance)
.subscribe(onSuccess: { .subscribe(onSuccess: {
self.tabsCache = $0 self.tabsCache = $0
@ -73,6 +74,7 @@ extension NvimView: NSTouchBarDelegate, NSScrubberDataSource, NSScrubberDelegate
func updateTouchBarTab() { func updateTouchBarTab() {
self self
.allTabs() .allTabs()
.observeOn(MainScheduler.instance)
.subscribe(onSuccess: { .subscribe(onSuccess: {
self.tabsCache = $0 self.tabsCache = $0