aboutsummaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authortassaron2017-06-25 16:13:54 -0400
committertassaron2017-06-25 16:13:54 -0400
commitf284acbf19ca3549b4aa2c3cab226e5254cdf936 (patch)
tree2deee87b170db8c3a6d1cb0708daeaefd41df9bc /src/core.py
parentf86c33d0e5aca7dcb74fd6d87e3395ee1595b088 (diff)
whitelist is more sensible here than blacklist
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py21
1 files changed, 7 insertions, 14 deletions
diff --git a/src/core.py b/src/core.py
index 2994a24..47fa01a 100644
--- a/src/core.py
+++ b/src/core.py
@@ -380,19 +380,12 @@ class Core():
def createProjectFile(self, filepath, window=None):
'''Create a project file (.avp) using the current program state'''
- forbiddenSettingsKeys = [
- 'currentProject',
- 'outputAudioBitrate',
- 'outputAudioCodec',
- 'outputContainer',
- 'outputFormat',
- 'outputFrameRate',
- 'outputHeight',
- 'outputPreset',
- 'outputVideoBitrate',
- 'outputVideoCodec',
- 'outputVideoFormat',
- 'outputWidth',
+ settingsKeys = [
+ 'componentDir',
+ 'inputDir',
+ 'outputDir',
+ 'presetDir',
+ 'projectDir',
]
try:
if not filepath.endswith(".avp"):
@@ -411,7 +404,7 @@ class Core():
f.write('\n[Settings]\n')
for key in self.settings.allKeys():
- if key not in forbiddenSettingsKeys:
+ if key in settingsKeys:
f.write('%s=%s\n' % (key, self.settings.value(key)))
if window: