1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-18 17:40:30 +00:00

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 2024-03-27 21:57:56 +01:00
parent ed0587692f
commit 7c86074a15

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