Commit 990af53
authored
Change DeviceList repr to use correct indices (#548)
The index from enumerate won't match the actual device index if the list is filtered/reordered for whatever reason (i.e. to restrict to inputs/outputs or a specific API). This also means the default mark would be wrong. This fix uses the index in the dictionary instead.1 parent a316b2b commit 990af53
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1832 | 1832 | | |
1833 | 1833 | | |
1834 | 1834 | | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
1835 | 1839 | | |
1836 | 1840 | | |
1837 | | - | |
1838 | | - | |
| 1841 | + | |
| 1842 | + | |
1839 | 1843 | | |
1840 | 1844 | | |
1841 | 1845 | | |
1842 | 1846 | | |
1843 | 1847 | | |
1844 | | - | |
| 1848 | + | |
1845 | 1849 | | |
1846 | 1850 | | |
1847 | 1851 | | |
| |||
0 commit comments