mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-13 02:08:38 +00:00
fix wrong title while first execution
This commit is contained in:
parent
12796d6387
commit
453895f395
@ -219,7 +219,9 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
||||
}
|
||||
if case .background(let color)? = item.additionalParameters[.background], let item = barItem as? CustomButtonTouchBarItem {
|
||||
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.bezelColor = color
|
||||
|
||||
Loading…
Reference in New Issue
Block a user