mac/apphub: make DnD behaviour on bundle icon configurable

we just need to add a OptionHelper to the AppHub, options were already
tried to read from the optional OptionHelper.
This commit is contained in:
der richter committed 2024-03-29 14:20:40 +01:00
1 parent ed0587692f
commit 7c86074a15
1 file changed
+3
+3
View File
@@ -20,6 +20,7 @@ class AppHub: NSObject {
var mpv: OpaquePointer?
@objc var input: InputHelper
var option: OptionHelper?
var event: EventHelper?
var menu: MenuBar?
#if HAVE_MACOS_MEDIA_PLAYER
@@ -44,6 +45,8 @@ class AppHub: NSObject {
}
@objc func initMpv(_ mpv: OpaquePointer) {
option = OptionHelper(UnsafeMutablePointer(mpv), mp_client_get_global(mpv))
input.option = option
event = EventHelper(self, mpv)
self.mpv = event?.mpv