summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-10 17:26:19 -0700
committerKeith Packard <keithp@keithp.com>2014-07-10 17:35:44 -0700
commit6dc58c63d202e918f16d5fbe9b188d422edcdd9c (patch)
tree359e3336e33f6d8048ceafbcbe953e6ff278f4b0
parent013e9ccfbe76dc46e8c69ea314950bed83d9a39f (diff)
altosui: Fix the 'Graph' button on the landed tab
It hasn't been getting enabled since the state tabs were rewritten. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosLanded.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/altosui/AltosLanded.java b/altosui/AltosLanded.java
index 50c1ea31..7c50adac 100644
--- a/altosui/AltosLanded.java
+++ b/altosui/AltosLanded.java
@@ -151,6 +151,12 @@ public class AltosLanded extends AltosUIFlightTab implements ActionListener {
return "Landed";
}
+ public void show(AltosState state, AltosListenerState listener_state) {
+ super.show(state, listener_state);
+ if (reader.backing_file() != null)
+ graph.setEnabled(true);
+ }
+
public AltosLanded(AltosFlightReader in_reader) {
reader = in_reader;