diff --git a/Hightail/src/org/hightail/Config.java b/Hightail/src/org/hightail/Config.java index 28b724e..8375c00 100644 --- a/Hightail/src/org/hightail/Config.java +++ b/Hightail/src/org/hightail/Config.java @@ -33,6 +33,7 @@ static protected void fillInUnsetValuesWithDefaults() { setIfUnset("pathFromWorkingDirToExec", "%P.exe"); // TODO: if under Unix, this better be "%L" setIfUnset("prependingCommand", ""); + setIfUnset("checkExistence", "1"); } static public boolean load() { @@ -57,4 +58,12 @@ static public void save() throws IOException { static public boolean isPrependingCommandNonempty() { return !Config.get("prependingCommand").trim().isEmpty(); } + + public static boolean getBoolean(String key) { + return !get(key).equals("0"); + } + + public static void setBoolean(String key, boolean value) { + set(key, value ? "1" : "0"); + } } diff --git a/Hightail/src/org/hightail/ui/ConfigJDialog.form b/Hightail/src/org/hightail/ui/ConfigJDialog.form index dbd16f4..340bc57 100644 --- a/Hightail/src/org/hightail/ui/ConfigJDialog.form +++ b/Hightail/src/org/hightail/ui/ConfigJDialog.form @@ -1,13 +1,12 @@ -