Skip to content

Commit

Permalink
Merge branch 'fix-install-dir-save-issues' of https://github.com/cwis…
Browse files Browse the repository at this point in the history
…niew/maptool into fix-install-dir-save-issues
  • Loading branch information
cwisniew committed Oct 19, 2023
2 parents 13ccb12 + dac8285 commit 5bfed44
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,10 @@
import java.util.List;
import java.util.prefs.Preferences;
import net.rptools.maptool.language.I18N;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class DeveloperOptions {
private static final Logger log = LogManager.getLogger(DeveloperOptions.class);
private static final Preferences prefs =
Preferences.userRoot().node(AppConstants.APP_NAME + "/prefs");
Preferences.userRoot().node(AppConstants.APP_NAME + "/dev");

public enum Toggle {
/**
Expand Down Expand Up @@ -57,7 +54,7 @@ public String getKey() {
}

public boolean isEnabled() {
return prefs.getBoolean(key, true);
return prefs.getBoolean(key, false);
}

public void setEnabled(boolean enabled) {
Expand Down

0 comments on commit 5bfed44

Please sign in to comment.