Commit 53b2dfec authored by David Fuhrmann's avatar David Fuhrmann Committed by Felix Paul Kühne

macosx: save volume in prefs only if controls are editable

Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 69e78ded
......@@ -856,7 +856,8 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
if( b_audioSettingChanged )
{
config_PutInt( p_intf, "audio", [o_audio_enable_ckb state] );
config_PutInt( p_intf, "volume", [o_audio_vol_fld intValue] * AOUT_VOLUME_MAX / 200 );
if( [o_audio_vol_fld isEnabled] )
config_PutInt( p_intf, "volume", [o_audio_vol_fld intValue] * AOUT_VOLUME_MAX / 200 );
config_PutInt( p_intf, "macosx-autosave-volume", [o_audio_autosavevol_yes_bcell state] );
config_PutInt( p_intf, "spdif", [o_audio_spdif_ckb state] );
......
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