mirror of
https://github.com/mpv-player/mpv
synced 2025-03-19 09:57:34 +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?
|
var mpv: OpaquePointer?
|
||||||
@objc var input: InputHelper
|
@objc var input: InputHelper
|
||||||
|
var option: OptionHelper?
|
||||||
var event: EventHelper?
|
var event: EventHelper?
|
||||||
var menu: MenuBar?
|
var menu: MenuBar?
|
||||||
#if HAVE_MACOS_MEDIA_PLAYER
|
#if HAVE_MACOS_MEDIA_PLAYER
|
||||||
@ -44,6 +45,8 @@ class AppHub: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@objc func initMpv(_ mpv: OpaquePointer) {
|
@objc func initMpv(_ mpv: OpaquePointer) {
|
||||||
|
option = OptionHelper(UnsafeMutablePointer(mpv), mp_client_get_global(mpv))
|
||||||
|
input.option = option
|
||||||
event = EventHelper(self, mpv)
|
event = EventHelper(self, mpv)
|
||||||
self.mpv = event?.mpv
|
self.mpv = event?.mpv
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user