From d249da3fb064754753bd20cd2ca1e5ffcce294ca Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 22 Aug 2011 23:33:52 -0700 Subject: [PATCH] altosui: Only 'show' config dialog once Otherwise, the dialog jumps back to the initial position each time the data is updated. Signed-off-by: Keith Packard --- altosui/AltosConfig.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/altosui/AltosConfig.java b/altosui/AltosConfig.java index 7cd8cb8b..45521665 100644 --- a/altosui/AltosConfig.java +++ b/altosui/AltosConfig.java @@ -85,6 +85,7 @@ public class AltosConfig implements ActionListener { string_ref callsign; AltosConfigUI config_ui; boolean serial_started; + boolean made_visible; boolean get_int(String line, String label, int_ref x) { if (line.startsWith(label)) { @@ -166,7 +167,10 @@ public class AltosConfig implements ActionListener { config_ui.set_pad_orientation(pad_orientation.get()); config_ui.set_callsign(callsign.get()); config_ui.set_clean(); - config_ui.make_visible(); + if (!made_visible) { + made_visible = true; + config_ui.make_visible(); + } } void process_line(String line) { -- 2.30.2