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:
parent
4996f95c45
commit
2e5b1b3a2a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user