Fixed another regression

This commit is contained in:
Stef Tervelde
2024-12-14 09:58:23 +01:00
parent 85e84cf068
commit caada42650
2 changed files with 4 additions and 1 deletions

View File

@@ -61,4 +61,7 @@ public class Preferences {
String value = get(attribute); //, null);
return Boolean.parseBoolean(value);
}
static public int getInteger(String attribute /*, int defaultValue*/) {
return Integer.parseInt(get(attribute));
}
}

View File

@@ -412,7 +412,7 @@ public class PdePreprocessor {
*/
public PdePreprocessor build() {
final int effectiveTabSize =
tabSize.orElseGet(() -> 4);
tabSize.orElseGet(() -> Preferences.getInteger("editor.tabs.size"));
final boolean effectiveIsTesting = isTesting.orElse(false);