forked from I2P_Developers/i2p.i2p
Console: isAdvanced() cleanup
This commit is contained in:
@ -263,7 +263,7 @@ public class NetDbHelper extends HelperBase {
|
|||||||
for (int i = 0; i < titles.length; i++) {
|
for (int i = 0; i < titles.length; i++) {
|
||||||
if (i == 2 && tab != 2)
|
if (i == 2 && tab != 2)
|
||||||
continue; // can't nav to lookup
|
continue; // can't nav to lookup
|
||||||
if ((i == 5 || i == 7 || i == 8) && !_context.getBooleanProperty(PROP_ADVANCED))
|
if ((i == 5 || i == 7 || i == 8) && !isAdvanced())
|
||||||
continue;
|
continue;
|
||||||
if (i == tab) {
|
if (i == tab) {
|
||||||
// we are there
|
// we are there
|
||||||
|
@ -266,7 +266,7 @@ public class PeerHelper extends HelperBase {
|
|||||||
buf.append("<h3 id=\"ntcpcon\">").append(_t("NTCP connections")).append(": ").append(peers.size());
|
buf.append("<h3 id=\"ntcpcon\">").append(_t("NTCP connections")).append(": ").append(peers.size());
|
||||||
buf.append(". ").append(_t("Limit")).append(": ").append(nt.getMaxConnections());
|
buf.append(". ").append(_t("Limit")).append(": ").append(nt.getMaxConnections());
|
||||||
//buf.append(". ").append(_t("Timeout")).append(": ").append(DataHelper.formatDuration2(_pumper.getIdleTimeout()));
|
//buf.append(". ").append(_t("Timeout")).append(": ").append(DataHelper.formatDuration2(_pumper.getIdleTimeout()));
|
||||||
if (_context.getBooleanProperty(PROP_ADVANCED)) {
|
if (isAdvanced()) {
|
||||||
buf.append(". ").append(_t("Status")).append(": ").append(_t(nt.getReachabilityStatus().toStatusString()));
|
buf.append(". ").append(_t("Status")).append(": ").append(_t(nt.getReachabilityStatus().toStatusString()));
|
||||||
}
|
}
|
||||||
buf.append(".</h3>\n" +
|
buf.append(".</h3>\n" +
|
||||||
|
Reference in New Issue
Block a user