Commit c36ffae
Settings: gate technique switches by stored technique, not menu mode (#2242)
While the menu is open the runtime current technique is MENU, so the
existing != ITEM_SCAN/RADAR/POINT_SCAN gates always passed and the
"Switch to [current technique]" item always rendered. Switch to
AccessTechnique.getStoredTechnique(), which reads the user's underlying
technique from preferences and is unaffected by the transient MENU
state. The current technique is now correctly hidden from the Settings
list.
Co-authored-by: Owen McGirr <o.a.mcgirr@gmail.com>1 parent 98f2f59 commit c36ffae
1 file changed
Lines changed: 11 additions & 5 deletions
File tree
Lines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
32 | 37 | | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
55 | 60 | | |
56 | 61 | | |
57 | 62 | | |
58 | | - | |
| 63 | + | |
59 | 64 | | |
60 | 65 | | |
61 | 66 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
120 | | - | |
| 125 | + | |
| 126 | + | |
121 | 127 | | |
0 commit comments