summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorder richter <der.richter@gmx.de>2024-03-27 21:57:56 +0100
committerder richter <der.richter@gmx.de>2024-03-29 14:20:40 +0100
commit7c86074a1574d6e79876ce1dd2fc5000f35a913b (patch)
treea53b60a5732f0fe6ea22836f26b79ab710453f7c /osdep
parented0587692f30b4b27a8ad3a7178021cec25844b1 (diff)
downloadmpv-7c86074a1574d6e79876ce1dd2fc5000f35a913b.tar.bz2
mpv-7c86074a1574d6e79876ce1dd2fc5000f35a913b.tar.xz
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.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/mac/app_hub.swift3
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/mac/app_hub.swift b/osdep/mac/app_hub.swift
index fe5160cf51..22f30dd9b3 100644
--- a/osdep/mac/app_hub.swift
+++ b/osdep/mac/app_hub.swift
@@ -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