Changeset b123720


Ignore:
Timestamp:
Sep 24, 2016 2:54:30 PM (3 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
d4f786c
Parents:
1376237
Message:

DTG: Enable by default on Windows

Location:
apps/routerconsole/java/src/net/i2p/router/web
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/net/i2p/router/web/ConfigServiceHandler.java

    r1376237 rb123720  
    215215     */
    216216    public boolean isSystrayEnabled() {
    217         return _context.getBooleanProperty(RouterConsoleRunner.PROP_DTG_ENABLED);
     217        // default false for now, except on non-service windows
     218        String sdtg = _context.getProperty(RouterConsoleRunner.PROP_DTG_ENABLED);
     219        return Boolean.parseBoolean(sdtg) ||
     220               (sdtg == null && SystemVersion.isWindows());
    218221    }
    219222
  • apps/routerconsole/java/src/net/i2p/router/web/RouterConsoleRunner.java

    r1376237 rb123720  
    282282        }
    283283        try {
    284             // default false for now
    285             boolean desktopguiEnabled = _context.getBooleanProperty(PROP_DTG_ENABLED);
     284            // default false for now, except on non-service windows
     285            String sdtg = _context.getProperty(PROP_DTG_ENABLED);
     286            boolean desktopguiEnabled = Boolean.parseBoolean(sdtg) ||
     287                                        (sdtg == null && SystemVersion.isWindows());
    286288            if (desktopguiEnabled) {
    287289                //Check if we are in a headless environment, set properties accordingly
Note: See TracChangeset for help on using the changeset viewer.