|
@@ -51,14 +51,14 @@ class KMNBotaSearchTopView: NSView, NibLoadable {
|
|
|
|
|
|
private lazy var replaceButton_: ComponentButton = {
|
|
|
let view = ComponentButton()
|
|
|
- view.properties = ComponentButtonProperty(type: .text_gray_low, size: .xxs, state: .normal, onlyIcon: true, icon: NSImage(named: "KMImageNameBotaSearchReplace"))
|
|
|
+ view.properties = ComponentButtonProperty(type: .text_gray_low, size: .xxs, state: .normal, onlyIcon: true, icon: NSImage(named: "KMImageNameBotaSearchReplace"), keepPressState: false)
|
|
|
view.setTarget(self, action: #selector(replaceAction))
|
|
|
return view
|
|
|
}()
|
|
|
|
|
|
private lazy var switchButton_: ComponentButton = {
|
|
|
let view = ComponentButton()
|
|
|
- view.properties = ComponentButtonProperty(type: .text_gray_low, size: .xxs, state: .normal, onlyIcon: true, icon: NSImage(named: "KMImageNameBotaSearchSwitch"))
|
|
|
+ view.properties = ComponentButtonProperty(type: .text_gray_low, size: .xxs, state: .normal, onlyIcon: true, icon: NSImage(named: "KMImageNameBotaSearchSwitch"), keepPressState: false)
|
|
|
view.setTarget(self, action: #selector(switchAction))
|
|
|
return view
|
|
|
}()
|