mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-10 17:08:39 +00:00
* removed local changes
This commit is contained in:
parent
7a3c4811ac
commit
893e9f6982
@ -49,7 +49,7 @@ class AppleScriptTouchBarItem: CustomButtonTouchBarItem {
|
||||
let output = script.executeAndReturnError(&error)
|
||||
if let error = error {
|
||||
print(error)
|
||||
return ""
|
||||
return "error"
|
||||
}
|
||||
return output.stringValue ?? ""
|
||||
}
|
||||
|
||||
@ -16,11 +16,10 @@ class CustomButtonTouchBarItem: NSCustomTouchBarItem {
|
||||
self.tapClosure = callback
|
||||
super.init(identifier: identifier)
|
||||
button = NSButton(title: title, target: self, action: #selector(didTapped))
|
||||
button.font = .systemFont(ofSize: CGFloat(13.0))
|
||||
button.title = title
|
||||
self.view = button
|
||||
}
|
||||
|
||||
|
||||
required init?(coder: NSCoder) {
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user