2016-08-30 23:25:34 +03:00
|
|
|
/**
|
|
|
|
* Tae Won Ha - http://taewon.de - @hataewon
|
|
|
|
* See LICENSE
|
|
|
|
*/
|
|
|
|
|
|
|
|
import Cocoa
|
|
|
|
import RxSwift
|
|
|
|
|
2016-09-01 21:10:40 +03:00
|
|
|
class OpenQuicklyWindowService: StandardFlow {
|
2016-08-30 23:25:34 +03:00
|
|
|
|
2016-09-01 21:10:40 +03:00
|
|
|
private let openQuicklyWindow: OpenQuicklyWindowComponent
|
2016-08-30 23:25:34 +03:00
|
|
|
|
2016-09-01 21:10:40 +03:00
|
|
|
override init(source: Observable<Any>) {
|
|
|
|
self.openQuicklyWindow = OpenQuicklyWindowComponent(source: source)
|
|
|
|
|
|
|
|
super.init(source: source)
|
|
|
|
}
|
|
|
|
|
|
|
|
func open(forMainWindow mainWindow: MainWindowComponent) {
|
2016-09-03 00:35:18 +03:00
|
|
|
self.openQuicklyWindow.show(forMainWindow: mainWindow)
|
2016-09-01 21:10:40 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
override func subscription(source source: Observable<Any>) -> Disposable {
|
|
|
|
return NopDisposable.instance
|
|
|
|
}
|
2016-08-30 23:25:34 +03:00
|
|
|
}
|