Previously, the device list only loaded once on startup. This was poor behaviour, as devices can be attached and detached at any time. Now the attached devices are polled once per second, and the list is updated accordingly. The code behind it is a bit messy because the list model interacts directly with parts of the GUI, but it works pretty well nevertheless. There's no mechanism to kick us out of the configuration screen if the device we're configuring is detached, but this can be addressed later. For now, I'm reasonably happy with this new feature.
|
|
||
6 |
|
6 |
|
7 |
|
7 |
|
8 |
|
8 |
|
9 |
|
|
|
|
9 |
|
|
10 |
|
10 |
|
11 |
|
11 |
|
12 |
|
12 |
|
|
|
||
37 |
|
37 |
|
38 |
|
38 |
|
39 |
|
39 |
|
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
|
|
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
|
|
|
67 |
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
|
76 |
|
|
40 |
|
77 |
|
41 |
|
78 |
|
42 |
|
|
|
|
79 |
|
|
43 |
|
80 |
|
44 |
|
81 |
|
45 |
|
|
|
|
82 |
|
|
46 |
|
83 |
|
47 |
|
84 |
|
48 |
|
85 |
|
49 |
|
86 |
|
50 |
|
87 |
|
51 |
|
88 |
|
52 |
|
|
|
|
89 |
|
|
53 |
|
90 |
|
54 |
|
91 |
|
55 |
|
|
|
|
92 |
|
|
56 |
|
93 |
|
57 |
|
94 |
|
58 |
|
95 |
|
|
|
||
70 |
|
107 |
|
71 |
|
108 |
|
72 |
|
109 |
|
|
110 |
|
|
73 |
|
111 |
|
74 |
|
112 |
|
75 |
|
|
|
76 |
|
|
|
77 |
|
|
|
78 |
|
|
|
79 |
|
|
|
|
113 |
|
|
|
114 |
|
|
|
115 |
|
|
80 |
|
116 |
|
81 |
|
117 |
|
82 |
|
118 |
|
|
|
||
135 |
|
171 |
|
136 |
|
172 |
|
137 |
|
173 |
|
138 |
|
|
|
139 |
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
|
174 |
|
143 |
|
175 |
|
144 |
|
176 |
|