diff options
author | Keith Packard <keithp@keithp.com> | 2016-07-12 21:06:23 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-07-12 21:06:23 -0700 |
commit | f39bee8875a0595b3d7ec7f5575d1e5eeb7544ec (patch) | |
tree | 571edf64ed8930496b62bc2a6c830af6a49a6e82 /altosuilib | |
parent | efd91febfa9bebd2f03508b2240916551450f831 (diff) |
altosuilib: Show indicator when they switch from invalid back to valid
The 'hide' value wasn't getting reset to 'false' each time the state
of the indicators was checked, so indicators would get hidden and then
never shown again.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib')
-rw-r--r-- | altosuilib/AltosUIUnitsIndicator.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/altosuilib/AltosUIUnitsIndicator.java b/altosuilib/AltosUIUnitsIndicator.java index dc5cb11c..d4dd18db 100644 --- a/altosuilib/AltosUIUnitsIndicator.java +++ b/altosuilib/AltosUIUnitsIndicator.java @@ -83,6 +83,7 @@ public abstract class AltosUIUnitsIndicator extends AltosUIIndicator { public void show (AltosState state, AltosListenerState listener_state) { double[] v = new double[values.length]; + hide = false; for (int i = 0; i < values.length; i++) { if (state != null) v[i] = value(state, listener_state, i); |