Commit ffcc069
committed
Fix USB: flip connected state before calling loadEditor
In USBWorkflow.onConnected, loadEditor() was being called BEFORE
super.onConnected() set _connected = CONNSTATE.connected. The new
post-connect Device Info dialog trigger gates on connectionStatus(),
which requires _connected == connected, so the dialog never opened
for USB users.
Reorder so super.onConnected() (which both flips the state flag and
closes the connect dialog) runs first, then loadEditor() runs with
connectionStatus() true. Also drop the redundant explicit
connectDialog.close() call -- super.onConnected already closes it.1 parent 67012d6 commit ffcc069
1 file changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments