Skip to content

Commit b2b495b

Browse files
committed
A bit better for icon only button, will render without title "Button"
1 parent 818c32b commit b2b495b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

MTMR/CustomButtonTouchBarItem.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem {
1616
self.tapClosure = callback
1717
super.init(identifier: identifier)
1818
button = NSButton(title: title, target: self, action: #selector(didTapped))
19+
button.title = title
1920
self.view = button
2021
}
2122

0 commit comments

Comments
 (0)