From 1883f2f7a0c8ec8561fa9bb7e3aeeb1e46eadbea Mon Sep 17 00:00:00 2001 From: der richter Date: Tue, 6 Feb 2024 21:15:56 +0100 Subject: [PATCH] mac/remote: move class local struct and enum definition to extension the class local struct and enum are moved to an extension to separate their definition and usage. --- osdep/macos/remote_command_center.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/osdep/macos/remote_command_center.swift b/osdep/macos/remote_command_center.swift index 55e52c021a..9840f5f617 100644 --- a/osdep/macos/remote_command_center.swift +++ b/osdep/macos/remote_command_center.swift @@ -17,7 +17,7 @@ import MediaPlayer -class RemoteCommandCenter: NSObject { +extension RemoteCommandCenter { enum KeyType { case normal case repeatable @@ -33,7 +33,9 @@ class RemoteCommandCenter: NSObject { self.type = type } } +} +class RemoteCommandCenter: NSObject { var configs: [MPRemoteCommand:Config] = [ MPRemoteCommandCenter.shared().pauseCommand: Config(key: MP_KEY_PAUSEONLY), MPRemoteCommandCenter.shared().playCommand: Config(key: MP_KEY_PLAYONLY),