1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-11 09:28:38 +00:00
This commit is contained in:
ad 2018-04-28 02:28:09 +03:00
parent 966a924183
commit 0808f0617a

View File

@ -100,10 +100,7 @@ class CustomButtonCell: NSButtonCell {
override func highlight(_ flag: Bool, withFrame cellFrame: NSRect, in controlView: NSView) {
if flag {
controlView.layer?.masksToBounds = true
self.isBordered = true
} else {
self.isBordered = false
}
super.highlight(flag, withFrame: cellFrame, in: controlView)
}