mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
Remove unnec' unowned
This commit is contained in:
parent
8d54f923b1
commit
40e72cd729
@ -45,7 +45,7 @@ class OpenQuicklyWindow: NSObject,
|
|||||||
|
|
||||||
source
|
source
|
||||||
.observeOn(MainScheduler.instance)
|
.observeOn(MainScheduler.instance)
|
||||||
.subscribe(onNext: { [unowned self] state in
|
.subscribe(onNext: { state in
|
||||||
guard state.openQuickly.open else {
|
guard state.openQuickly.open else {
|
||||||
self.windowController.close()
|
self.windowController.close()
|
||||||
return
|
return
|
||||||
@ -68,7 +68,7 @@ class OpenQuicklyWindow: NSObject,
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.searchStream
|
self.searchStream
|
||||||
.subscribe(onNext: { [unowned self] pattern in
|
.subscribe(onNext: { pattern in
|
||||||
self.pattern = pattern
|
self.pattern = pattern
|
||||||
self.resetAndAddFilterOperation()
|
self.resetAndAddFilterOperation()
|
||||||
})
|
})
|
||||||
@ -76,7 +76,7 @@ class OpenQuicklyWindow: NSObject,
|
|||||||
|
|
||||||
self.flatFileItemsSource
|
self.flatFileItemsSource
|
||||||
.subscribeOn(self.scheduler)
|
.subscribeOn(self.scheduler)
|
||||||
.do(onNext: { [unowned self] items in
|
.do(onNext: { items in
|
||||||
self.scanCondition.lock()
|
self.scanCondition.lock()
|
||||||
while self.pauseScan {
|
while self.pauseScan {
|
||||||
self.scanCondition.wait()
|
self.scanCondition.wait()
|
||||||
@ -88,7 +88,7 @@ class OpenQuicklyWindow: NSObject,
|
|||||||
self.resetAndAddFilterOperation()
|
self.resetAndAddFilterOperation()
|
||||||
})
|
})
|
||||||
.observeOn(MainScheduler.instance)
|
.observeOn(MainScheduler.instance)
|
||||||
.subscribe(onNext: { [unowned self] items in
|
.subscribe(onNext: { items in
|
||||||
self.count += items.count
|
self.count += items.count
|
||||||
self.countField.stringValue = "\(self.count) items"
|
self.countField.stringValue = "\(self.count) items"
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user