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);
} else {
String input = postProcessing.getText();
File program = new File(input);
setPostProcessing(program);
if(!input.trim().isEmpty()) {
File program = new File(input);
setPostProcessing(program);
} else {
Config.getInstance().getSettings().postProcessing = "";
}
}
}
};