diff options
| author | Keith Packard <keithp@keithp.com> | 2014-07-08 23:43:31 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2014-07-09 00:26:03 -0700 |
| commit | 95f3a2825377bdb6737446df051c069d58f42d08 (patch) | |
| tree | 7fde373c27520a409a34971c61d30c1f025b40bf /altosuilib/AltosUIRateList.java | |
| parent | 78db9e350db104da87e0fe4b72aa41bf6cf45e1d (diff) | |
altosui: Hide inactive altimeter configuration entries
Instead of disabling them, just hide them so that entries that do not
apply to a particular device won't get shown at all.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib/AltosUIRateList.java')
| -rw-r--r-- | altosuilib/AltosUIRateList.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/altosuilib/AltosUIRateList.java b/altosuilib/AltosUIRateList.java index 2e0c65a2..ee35ce6d 100644 --- a/altosuilib/AltosUIRateList.java +++ b/altosuilib/AltosUIRateList.java @@ -28,11 +28,7 @@ public class AltosUIRateList extends JComboBox<String> { public void set_rate(int new_rate) { int i; - if (new_rate < 0) { - setVisible(false); - return; - } - + setVisible(new_rate >= 0); setSelectedIndex(new_rate); } |
