Skip to content

Commit

Permalink
Merge branch 'RPTools:develop' into fix-install-dir-save-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cwisniew authored Oct 19, 2023
2 parents 887c145 + 80fa735 commit dac8285
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 dac8285

Please sign in to comment.