[vlc-commits] macosx: always load default video profile if apply profile is false
Victorien Le Couviour--Tuffet
git at videolan.org
Thu Jul 13 11:25:39 CEST 2017
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at 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 <jb at 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;
}
More information about the vlc-commits
mailing list