Skip to content

Commit

Permalink
Merge pull request #4329 from RPTools/bugfix/4061-dev-options-enabled…
Browse files Browse the repository at this point in the history
…-by-default

Disable developer options by default
  • Loading branch information
cwisniew authored Oct 19, 2023
2 parents b91b29b + 8583bb4 commit 80fa735
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 80fa735

Please sign in to comment.