mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 09:28:38 +00:00
Changed touchbarcontroller to load image in group item
This commit is contained in:
parent
5f876acc72
commit
13cfab2e82
@ -309,9 +309,13 @@ class TouchBarController: NSObject, NSTouchBarDelegate {
|
||||
if case let .width(value)? = item.additionalParameters[.width], let widthBarItem = barItem as? CanSetWidth {
|
||||
widthBarItem.setWidth(value: value)
|
||||
}
|
||||
if case let .image(source)? = item.additionalParameters[.image], let item = barItem as? CustomButtonTouchBarItem {
|
||||
if case let .image(source)? = item.additionalParameters[.image] {
|
||||
if let item = barItem as? GroupBarItem {
|
||||
item.collapsedRepresentationImage = source.image
|
||||
} else if let item = barItem as? CustomButtonTouchBarItem {
|
||||
item.image = source.image
|
||||
}
|
||||
}
|
||||
if case let .title(value)? = item.additionalParameters[.title] {
|
||||
if let item = barItem as? GroupBarItem {
|
||||
item.collapsedRepresentationLabel = value
|
||||
|
||||
Loading…
Reference in New Issue
Block a user