[vlc-commits] [Git][videolan/vlc][3.0.x] macosx/prefs: always show media key control as enabled
David
gitlab at videolan.org
Wed Jun 16 16:56:52 UTC 2021
David pushed to branch 3.0.x at VideoLAN / VLC
Commits:
08db536c by Felix Paul Kühne at 2021-06-16T13:53:41+02:00
macosx/prefs: always show media key control as enabled
On macOS Sierra and higher, we will use the official API to enable
control of VLC, which will always be enabled as potential conflicts are
mitigated by the OS and it is possible to control more than one
application at the same time, so the option is ignored. On earlier
releases of macOS, SPMediaKeyTap can still be optionally disabled.
- - - - -
1 changed file:
- modules/gui/macosx/VLCSimplePrefsController.m
Changes:
=====================================
modules/gui/macosx/VLCSimplePrefsController.m
=====================================
@@ -565,7 +565,12 @@ static inline const char * __config_GetLabel(vlc_object_t *p_this, const char *p
[self setupButton:_intf_appleremoteCheckbox forBoolValue: "macosx-appleremote"];
[self setupButton:_intf_appleremote_sysvolCheckbox forBoolValue: "macosx-appleremote-sysvol"];
[self setupButton:_intf_statusIconCheckbox forBoolValue: "macosx-statusicon"];
- [self setupButton:_intf_mediakeysCheckbox forBoolValue: "macosx-mediakeys"];
+ if (OSX_SIERRA_AND_HIGHER) {
+ _intf_mediakeysCheckbox.enabled = NO;
+ _intf_mediakeysCheckbox.intValue = YES;
+ } else {
+ [self setupButton:_intf_mediakeysCheckbox forBoolValue: "macosx-mediakeys"];
+ }
[self setupButton:_video_nativeFullscreenCheckbox forBoolValue: "macosx-nativefullscreenmode"];
[self setupButton:_video_embeddedCheckbox forBoolValue: "embedded-video"];
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/08db536c9921b0b5654bc954e335051efa1130c1
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/08db536c9921b0b5654bc954e335051efa1130c1
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list