diff -r 958e9fe8afdf -r 551243a66b32 GUI/Gadget.cs --- a/GUI/Gadget.cs Thu Sep 30 16:51:09 2010 +0000 +++ b/GUI/Gadget.cs Thu Sep 30 20:59:21 2010 +0000 @@ -1,4 +1,4 @@ -/* +/* Version: MPL 1.1/GPL 2.0/LGPL 2.1 @@ -166,14 +166,17 @@ } set { if (value != window.Visible) { + window.Visible = value; if (value) - Redraw(); - window.Visible = value; + Redraw(); } } } public void Redraw() { + if (!window.Visible) + return; + if (window.Size != buffer.Size) { DisposeBuffer(); CreateBuffer();