altosui: Clean up packet link connecting dialog
authorKeith Packard <keithp@keithp.com>
Tue, 29 Mar 2011 06:35:05 +0000 (23:35 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 29 Mar 2011 06:35:05 +0000 (23:35 -0700)
commitc71a145daefb86d2c1297abec68e54bd951e3adf
tree966b9ed98509ff55c89a8e995efec13f41c5243e
parentc6e7e812d67f91c63ba4982f7a899a72584027de
altosui: Clean up packet link connecting dialog

Make sure the dialog is destroyed after use (otherwise, it hangs
around on the screen sometimes).

Switch timeout before showing dialog to 500ms -- that brings the
dialog up less often when unnecessary.

Use 'timeout_started' boolean to indicate whether the I/O thread has
queued the dialog for display and whether it needs to queue a call to
close it down.

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