altosui: Disable main deploy setting for TeleGPS
authorKeith Packard <keithp@keithp.com>
Wed, 17 Apr 2013 00:47:17 +0000 (17:47 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 17 Apr 2013 17:40:05 +0000 (10:40 -0700)
Just like all of the other flight computer settings, disable the main
deploy altitude configuration for TeleGPS.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosConfigUI.java

index 4fd0647efa860a3d47f8d4732a479e69cea14314..11f405938ba385118eed7bbf57c6665f20d93b55 100644 (file)
@@ -719,6 +719,7 @@ public class AltosConfigUI
 
        public void set_main_deploy(int new_main_deploy) {
                main_deploy_value.setSelectedItem(Integer.toString(new_main_deploy));
+               main_deploy_value.setEnabled(new_main_deploy >= 0);
        }
 
        public int main_deploy() {