altosui: Make AltosEepromDownload not swing-dependent
[fw/altos] / altosui / AltosEepromManage.java
index b2d8a130fba1bbe11db4c1ec0a349c726e7e4e34..da0a977733083696bacd66870a42f5118ddb6646 100644 (file)
@@ -133,11 +133,13 @@ public class AltosEepromManage implements ActionListener {
                                        for (AltosEepromLog flight : flights)
                                                any_selected = any_selected || flight.selected;
                                        if (any_selected) {
-                                               download = new AltosEepromDownload(frame,
+                                               AltosEepromMonitorUI monitor = new AltosEepromMonitorUI(frame);
+                                               monitor.addActionListener(this);
+                                               serial_line.set_frame(frame);
+                                               download = new AltosEepromDownload(monitor,
                                                                                   serial_line,
                                                                                   remote,
                                                                                   flights);
-                                               download.addActionListener(this);
                                                /*
                                                 * Start flight log download
                                                 */