Skip to content

Commit 8f0a16b

Browse files
committed
- After enabling/disabling flash drive, run_task_tab now pauses then calls GUI_main.refresh. This prevents the user from trying to reconnect to the board before the serial port address has been updated in the GUI.
1 parent 42363e8 commit 8f0a16b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gui/run_task_tab.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ def open_config_dialog(self):
227227
self.GUI_main.config_dialog.exec_(self.board)
228228
self.task_changed()
229229
if self.GUI_main.config_dialog.disconnect:
230+
time.sleep(0.5)
231+
self.GUI_main.refresh()
230232
self.disconnect()
231233
if self.connected and self.board.status['framework']:
232234
self.task_groupbox.setEnabled(True)

0 commit comments

Comments
 (0)