Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
fqqb committed Sep 20, 2023
1 parent 873a84d commit 9db1b68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class SiteConfiguration {
// Read site-specific configuration, this can be used to toggle some functionality
// in a site-controlled manner.
var configLocation = ConfigurationScope.INSTANCE.getLocation().toFile();
System.out.println("Check for location " + configLocation);
var configFile = new File(configLocation, "site-config.ini");
System.out.println("File exists ? " + configFile.exists());
if (configFile.exists()) {
try (var fileIn = Files.newInputStream(configFile.toPath())) {
props.load(fileIn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,9 @@ public boolean isSpellEnabled() {
var spellEnabled = getPreferenceStore().getBoolean("spell.enabled");

var override = SiteConfiguration.isSpellEnabled();
System.out.println("Override present ? " + override.isPresent());
if (override.isPresent()) {
System.out.println("enabled " + override.get());
spellEnabled = override.get();
}
return spellEnabled;
Expand Down

0 comments on commit 9db1b68

Please sign in to comment.