[freenet-dev] [freenet-cvs] r16856 - trunk/freenet/src/freenet/clients/http

Matthew Toseland toad at amphibian.dyndns.org
Thu Jan 3 16:49:45 UTC 2008


On Thursday 03 January 2008 16:15, nextgens at freenetproject.org wrote:
> Author: nextgens
> Date: 2008-01-03 16:15:23 +0000 (Thu, 03 Jan 2008)
> New Revision: 16856
> 
> Modified:
>    trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
> Log:
> ConnectionToadlet: don't display the "add a peer" box for opennet
> 
> Modified: trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java
> ===================================================================
> --- trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java	
2008-01-03 16:11:15 UTC (rev 16855)
> +++ trunk/freenet/src/freenet/clients/http/ConnectionsToadlet.java	
2008-01-03 16:15:23 UTC (rev 16856)
> @@ -466,9 +466,10 @@
>  			}
>  			// END PEER TABLE
>  		}
> -
> -		drawAddPeerBox(contentNode, ctx);
>  		
> +		if(!isOpennet())
> +			drawAddPeerBox(contentNode, ctx);
> +		

Override the callback. drawAddPeerBox should be inside 
if(shouldDrawNoderefBox()).

>  		// our reference
>  		if(shouldDrawNoderefBox(advancedModeEnabled))
>  			drawNoderefBox(contentNode, ctx);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/devl/attachments/20080103/8a4f8d8b/attachment.pgp 


More information about the Devl mailing list