forked from j62/ctbrec
1
0
Fork 0

Fix: Make it possible to remove post-processing script

This commit is contained in:
0xboobface 2018-11-14 15:26:11 +01:00
parent ef3c5640e1
commit 9bf8a4f2d4
1 changed files with 6 additions and 2 deletions

View File

@ -437,8 +437,12 @@ public class SettingsTab extends Tab implements TabSelectionListener {
postProcessing.setTooltip(null); postProcessing.setTooltip(null);
} else { } else {
String input = postProcessing.getText(); String input = postProcessing.getText();
File program = new File(input); if(!input.trim().isEmpty()) {
setPostProcessing(program); File program = new File(input);
setPostProcessing(program);
} else {
Config.getInstance().getSettings().postProcessing = "";
}
} }
} }
}; };