diff options
author | Keith Packard <keithp@keithp.com> | 2017-06-11 16:11:09 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-06-11 22:54:22 -0700 |
commit | 171adbe7db8520f5ff52a5fe2c54fe165c6f91f8 (patch) | |
tree | d873249bca5f9beb0413475d3aad6f5d4a4d04cd /altosui/AltosIgniteUI.java | |
parent | af6ce9a142d001f3b9b83cf6527f4dc848e94d48 (diff) |
altoslib, altosuilib, altosui, telegps: Missing config values now MISSING
Config values that didn't apply to the current product used to get set
to -1, but now they're set to AltosLib.MISSING to be consistent with
the rest of the code. Deal with this in the UI bits.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosIgniteUI.java')
-rw-r--r-- | altosui/AltosIgniteUI.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/altosui/AltosIgniteUI.java b/altosui/AltosIgniteUI.java index 15493b8a..fe6194ef 100644 --- a/altosui/AltosIgniteUI.java +++ b/altosui/AltosIgniteUI.java @@ -213,6 +213,8 @@ public class AltosIgniteUI fired(); } else if (reply.startsWith("npyro")) { npyro = Integer.parseInt(reply.substring(6)); + if (npyro == AltosLib.MISSING) + npyro = 0; make_ui(); } } @@ -255,15 +257,11 @@ public class AltosIgniteUI boolean getting_status = false; - boolean visible = false; - void set_ignite_status() { getting_status = false; poll_remaining = 2; - if (!visible) { - visible = true; + if (!isVisible()) setVisible(true); - } } void poll_ignite_status() { |