diff options
| author | Keith Packard <keithp@keithp.com> | 2011-08-22 23:33:52 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-08-22 23:33:52 -0700 | 
| commit | d249da3fb064754753bd20cd2ca1e5ffcce294ca (patch) | |
| tree | 1a5f95a36975aed86ce48cc9a362777c891ff7c2 | |
| parent | e9254c3472e42d93181674b2c3cd80fe6eea696e (diff) | |
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 <keithp@keithp.com>
| -rw-r--r-- | altosui/AltosConfig.java | 6 | 
1 files changed, 5 insertions, 1 deletions
| 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) { | 
