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

#854 fixed excessive disabling

parent 6fbfd849
......@@ -572,6 +572,7 @@ public class TablexiaButton extends Group {
}
public TablexiaButton setEnabled(boolean enabled) {
if (this.enabled != enabled) {
this.enabled = enabled;
if (enabled) {
registerInputListener();
......@@ -580,6 +581,7 @@ public class TablexiaButton extends Group {
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