Commit 60a2dcc9 authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

#854 fixed excessive disabling

parent 6fbfd849
......@@ -572,13 +572,15 @@ public class TablexiaButton extends Group {
}
public TablexiaButton setEnabled(boolean enabled) {
this.enabled = enabled;
if (enabled) {
registerInputListener();
setUnchecked();
} else {
unregisterInputListener();
changeBackground(disabled, disabledPatch);
if (this.enabled != enabled) {
this.enabled = enabled;
if (enabled) {
registerInputListener();
setUnchecked();
} else {
unregisterInputListener();
changeBackground(disabled, disabledPatch);
}
}
return this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment