vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuf...@gmail.com> | Mon Jul 3 20:06:01 2017 +0200| [a3b07d9b17e4676fe6b10662d6ef107a058102a2] | committer: Jean-Baptiste Kempf
macosx: always load default video profile if apply profile is false It is annoying to load the last selected video profile when the video 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=a3b07d9b17e4676fe6b10662d6ef107a058102a2 --- modules/gui/macosx/VLCVideoEffectsWindowController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/gui/macosx/VLCVideoEffectsWindowController.m b/modules/gui/macosx/VLCVideoEffectsWindowController.m index 2ab0316cf9..45f160aa5d 100644 --- a/modules/gui/macosx/VLCVideoEffectsWindowController.m +++ b/modules/gui/macosx/VLCVideoEffectsWindowController.m @@ -62,10 +62,13 @@ self.textfieldPanel = [[VLCTextfieldPanelController alloc] init]; } - if ([[NSUserDefaults standardUserDefaults] boolForKey:@"VideoEffectApplyProfileOnStartup"]) { + NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; + if ([defaults boolForKey:@"VideoEffectApplyProfileOnStartup"]) { [self resetValues]; [self loadProfile]; } + else + [defaults setInteger:0 forKey:@"VideoEffectSelectedProfile"]; return self; } _______________________________________________ vlc-commits mailing list vlc-commits@videolan.org https://mailman.videolan.org/listinfo/vlc-commits