That last bug would have been a lot easier to track down if a disabled link button didn't still
look like it should be clickable. Let's turn buttonMode off when we get disabled. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@492 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -50,6 +50,17 @@ public class CommandLinkButton extends LinkButton
|
|||||||
_arg = arg;
|
_arg = arg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override public function set enabled (enable :Boolean) :void
|
||||||
|
{
|
||||||
|
super.enabled = enable;
|
||||||
|
|
||||||
|
if (enable) {
|
||||||
|
buttonMode = true;
|
||||||
|
} else {
|
||||||
|
buttonMode = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the command and argument to be issued when this button is pressed.
|
* Set the command and argument to be issued when this button is pressed.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user