Console: isAdvanced() cleanup

This commit is contained in:
zzz
2018-12-23 10:17:46 +00:00
parent 367e5ac679
commit 2d026d5ae7
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ public class NetDbHelper extends HelperBase {
for (int i = 0; i < titles.length; i++) {
if (i == 2 && tab != 2)
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;
if (i == tab) {
// we are there

View File

@ -266,7 +266,7 @@ public class PeerHelper extends HelperBase {
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("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(".</h3>\n" +