Commit 95e32e3e authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

macosx: improve reliability to detect text field content changes (should finally fix #5862)

(cherry picked from commit 7b5c4c3f)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2f59334a
...@@ -1096,6 +1096,28 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -1096,6 +1096,28 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
[self showSettingsForCategory: o_osd_view]; [self showSettingsForCategory: o_osd_view];
} }
- (void)controlTextDidChange:(NSNotification *)o_notification
{
id notificationObject = [o_notification object];
if( notificationObject == o_audio_lang_fld ||
notificationObject == o_audio_lastpwd_sfld ||
notificationObject == o_audio_lastuser_fld ||
notificationObject == o_audio_vol_fld )
b_audioSettingChanged = YES;
else if( notificationObject == o_input_record_fld ||
notificationObject == o_input_httpproxy_fld ||
notificationObject == o_input_httpproxypwd_sfld ||
notificationObject == o_input_postproc_fld )
b_inputSettingChanged = YES;
else if( notificationObject == o_osd_font_fld ||
notificationObject == o_osd_lang_fld ||
notificationObject == o_osd_opacity_fld)
b_osdSettingChanged = YES;
else if( notificationObject == o_video_snap_folder_fld ||
notificationObject == o_video_snap_prefix_fld )
b_videoSettingChanged = YES;
}
- (IBAction)showFontPicker:(id)sender - (IBAction)showFontPicker:(id)sender
{ {
char * font = config_GetPsz( p_intf, "freetype-font" ); char * font = config_GetPsz( p_intf, "freetype-font" );
......
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