Commit 642d2d9
Milkii Brewster
fix controller wizard menu not updating after startup
Connect to ControllerManager::mappingApplied in addition to
devicesChanged. devicesChanged is only emitted once on startup
(per the comment in controllermanager.cpp); mappingApplied fires
after a controller is opened when a mapping is applied post-startup,
so the menu now updates correctly when controllers are enabled.
Also simplify openLearningWizard loop to range-for per review.1 parent b15a152 commit 642d2d9
2 files changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 297 | + | |
| 298 | + | |
301 | 299 | | |
302 | 300 | | |
303 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
959 | 966 | | |
960 | 967 | | |
961 | 968 | | |
| |||
0 commit comments