[vlc-devel] [PATCH 09/18] macosx: always load default video profile if apply profile is false
Victorien Le Couviour--Tuffet
victorien.lecouviour.tuffet at gmail.com
Tue Jul 4 10:01:08 CEST 2017
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.
---
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;
}
--
2.13.1
More information about the vlc-devel
mailing list