summaryrefslogtreecommitdiffstats
path: root/osdep/mac/touch_bar.swift
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/mac/touch_bar.swift')
-rw-r--r--osdep/mac/touch_bar.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/mac/touch_bar.swift b/osdep/mac/touch_bar.swift
index 002c3dacb1..c21776c9e2 100644
--- a/osdep/mac/touch_bar.swift
+++ b/osdep/mac/touch_bar.swift
@@ -225,12 +225,12 @@ class TouchBar: NSTouchBar, NSTouchBarDelegate {
@objc func buttonAction(_ button: NSButton) {
guard let identifier = getIdentifierFrom(view: button), let command = configs[identifier]?.command else { return }
- EventsResponder.sharedInstance().inputHelper.command(command)
+ AppHub.shared.input.command(command)
}
@objc func seekbarChanged(_ slider: NSSlider) {
guard let identifier = getIdentifierFrom(view: slider), let command = configs[identifier]?.command else { return }
- EventsResponder.sharedInstance().inputHelper.command(String(format: command, slider.doubleValue))
+ AppHub.shared.input.command(String(format: command, slider.doubleValue))
}
func format(time: Int) -> String {