1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-12 09:58:38 +00:00

fix wrong title while first execution

This commit is contained in:
Serg 2018-04-30 18:53:32 +07:00
parent 12796d6387
commit 453895f395

View File

@ -219,7 +219,9 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
} }
if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem { if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem {
if item.button.cell?.isBordered == false { if item.button.cell?.isBordered == false {
item.button.cell = NSButtonCell() let newCell = NSButtonCell()
newCell.title = item.button.title
item.button.cell = newCell
item.button.cell?.isBordered = true item.button.cell?.isBordered = true
} }
item.button.bezelColor = color item.button.bezelColor = color