vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuf...@gmail.com> | Tue Jul 4 04:13:17 2017 +0200| [54f91ea19b3ec6d08e9d45976b3d11bd4720a3d1] | committer: Jean-Baptiste Kempf
macosx: always load default audio profile if apply profile is false 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. Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=54f91ea19b3ec6d08e9d45976b3d11bd4720a3d1 --- 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; _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits