mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 01:47:38 +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:
parent
ed0587692f
commit
7c86074a15
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user