diff options
author | der richter <der.richter@gmx.de> | 2024-03-23 20:09:15 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-24 23:03:48 +0100 |
commit | 7e07e1a087e4107914294c5e9717f798e446c5d9 (patch) | |
tree | d0342930685761b1f3bb1c471c9b0c8e21fd8a95 /osdep/mac/touch_bar.swift | |
parent | deb9d30e905b7b4645f18a26e6274a2859221631 (diff) | |
download | mpv-7e07e1a087e4107914294c5e9717f798e446c5d9.tar.bz2 mpv-7e07e1a087e4107914294c5e9717f798e446c5d9.tar.xz |
mac/apphub: migrate remaining events functionality to new AppHub
add new app_bridge objc file for bridging between mpv core and app
functionality. replace old EventsResponder singleton with AppHub.
another step to clean up all App functionality and have one central
place for it.
Diffstat (limited to 'osdep/mac/touch_bar.swift')
-rw-r--r-- | osdep/mac/touch_bar.swift | 4 |
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 { |