mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +00:00
* fix
This commit is contained in:
parent
966a924183
commit
0808f0617a
@ -100,10 +100,7 @@ class CustomButtonCell: NSButtonCell {
|
|||||||
|
|
||||||
override func highlight(_ flag: Bool, withFrame cellFrame: NSRect, in controlView: NSView) {
|
override func highlight(_ flag: Bool, withFrame cellFrame: NSRect, in controlView: NSView) {
|
||||||
if flag {
|
if flag {
|
||||||
controlView.layer?.masksToBounds = true
|
|
||||||
self.isBordered = true
|
self.isBordered = true
|
||||||
} else {
|
|
||||||
self.isBordered = false
|
|
||||||
}
|
}
|
||||||
super.highlight(flag, withFrame: cellFrame, in: controlView)
|
super.highlight(flag, withFrame: cellFrame, in: controlView)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user