Commit d27c7bfe authored by David Fuhrmann's avatar David Fuhrmann

macosx: grey out fullscreen device selector of native fs is enabled

Selecting the fullscreen monitor is not supported with native
fullscreen.
parent 3a49a650
...@@ -1128,6 +1128,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha ...@@ -1128,6 +1128,7 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
{ {
[_video_videodecoCheckbox setEnabled: !_value]; [_video_videodecoCheckbox setEnabled: !_value];
[_video_blackScreenCheckbox setEnabled: !_value]; [_video_blackScreenCheckbox setEnabled: !_value];
[_video_devicePopup setEnabled: !_value];
if (_value) { if (_value) {
[_video_videodecoCheckbox setState: NSOnState]; [_video_videodecoCheckbox setState: NSOnState];
...@@ -1136,9 +1137,13 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha ...@@ -1136,9 +1137,13 @@ static inline void save_string_list(intf_thread_t * p_intf, id object, const cha
NSString *tooltipText = _NS("This setting cannot be changed because the native fullscreen mode is enabled."); NSString *tooltipText = _NS("This setting cannot be changed because the native fullscreen mode is enabled.");
[_video_videodecoCheckbox setToolTip:tooltipText]; [_video_videodecoCheckbox setToolTip:tooltipText];
[_video_blackScreenCheckbox setToolTip:tooltipText]; [_video_blackScreenCheckbox setToolTip:tooltipText];
[_video_devicePopup setToolTip:tooltipText];
} else { } else {
[self setupButton:_video_videodecoCheckbox forBoolValue: "video-deco"]; [self setupButton:_video_videodecoCheckbox forBoolValue: "video-deco"];
[self setupButton:_video_blackScreenCheckbox forBoolValue: "macosx-black"]; [self setupButton:_video_blackScreenCheckbox forBoolValue: "macosx-black"];
[_video_devicePopup setToolTip:@""];
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment