mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Prevent Add Player button getting stuck
This commit is contained in:
@@ -357,6 +357,7 @@ public class FLabel extends SkinnedLabel implements ILocalRepaint {
|
|||||||
// Must be public.
|
// Must be public.
|
||||||
@Override
|
@Override
|
||||||
public void setEnabled(final boolean b0) {
|
public void setEnabled(final boolean b0) {
|
||||||
|
if (this.isEnabled() == b0) { return; }
|
||||||
super.setEnabled(b0);
|
super.setEnabled(b0);
|
||||||
if (!this.hoverable) { return; }
|
if (!this.hoverable) { return; }
|
||||||
if (!b0) { this.removeMouseListener(madEvents); }
|
if (!b0) { this.removeMouseListener(madEvents); }
|
||||||
@@ -366,6 +367,7 @@ public class FLabel extends SkinnedLabel implements ILocalRepaint {
|
|||||||
/** @param b0   boolean */
|
/** @param b0   boolean */
|
||||||
// Must be public.
|
// Must be public.
|
||||||
public void setHoverable(final boolean b0) {
|
public void setHoverable(final boolean b0) {
|
||||||
|
if (this.hoverable == b0) { return; }
|
||||||
this.hoverable = b0;
|
this.hoverable = b0;
|
||||||
if (!this.isEnabled()) { return; }
|
if (!this.isEnabled()) { return; }
|
||||||
if (!b0) { this.removeMouseListener(madEvents); }
|
if (!b0) { this.removeMouseListener(madEvents); }
|
||||||
|
|||||||
Reference in New Issue
Block a user