|
@@ -142,13 +142,13 @@ class KMSearchReplaceWindowController: KMNBaseWindowController {
|
|
|
titleBarBox.borderWidth = 0
|
|
|
titleBarBox.contentView = titleBarView_
|
|
|
titleBarView_.titleLabel.font = .SFProTextRegularFont(14)
|
|
|
- titleBarView_.itemClick = { [unowned self] idx, _ in
|
|
|
+ titleBarView_.itemClick = { [weak self] idx, _ in
|
|
|
if idx == 1 {
|
|
|
- _closeAction(NSButton())
|
|
|
+ self?._closeAction(NSButton())
|
|
|
} else if idx == 2 {
|
|
|
- _closeAction(NSButton())
|
|
|
+ self?._closeAction(NSButton())
|
|
|
|
|
|
- itemClick?(1, handdler)
|
|
|
+ self?.itemClick?(1, self?.handdler)
|
|
|
}
|
|
|
}
|
|
|
|