mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
and fix empty keyboard layout widget too
This commit is contained in:
parent
961d11a49a
commit
20dd337493
@ -55,6 +55,7 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem, NSGestureRecognizerDelegat
|
||||
|
||||
private func reinstallButton() {
|
||||
let title = button.attributedTitle
|
||||
let image = button.image
|
||||
let cell = CustomButtonCell()
|
||||
button.cell = cell
|
||||
if let color = backgroundColor {
|
||||
@ -66,6 +67,7 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem, NSGestureRecognizerDelegat
|
||||
button.bezelStyle = isBordered ? .rounded : .inline
|
||||
}
|
||||
button.attributedTitle = title
|
||||
button.image = image
|
||||
self.view = button
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user