[vlc-devel] [PATCH 18/18] macosx: always load default audio profile if apply profile is false
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Jul 4 10:01:17 CEST 2017
It is annoying to load the last selected video profile when the audio effects
window opens if the apply last profile checkbox was not checked.
---
modules/gui/macosx/VLCAudioEffectsWindowController.m | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/gui/macosx/VLCAudioEffectsWindowController.m b/modules/gui/macosx/VLCAudioEffectsWindowController.m
index b445961ac6..e337395e2c 100644
--- a/modules/gui/macosx/VLCAudioEffectsWindowController.m
+++ b/modules/gui/macosx/VLCAudioEffectsWindowController.m
@@ -95,7 +95,8 @@
self.popupPanel = [[VLCPopupPanelController alloc] init];
self.textfieldPanel = [[VLCTextfieldPanelController alloc] init];
- if ([[NSUserDefaults standardUserDefaults] boolForKey:@"AudioEffectApplyProfileOnStartup"])
+ NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
+ if ([defaults boolForKey:@"AudioEffectApplyProfileOnStartup"])
{
[self equalizerUpdated];
[self resetCompressor];
@@ -103,6 +104,8 @@
[self resetAudioFilters];
[self loadProfile];
}
+ else
+ [defaults setInteger:0 forKey:@"AudioEffectSelectedProfile"];
}
return self;
--
2.13.1
More information about the vlc-devel
mailing list