Got rid of hardcoded max in settings

master
David Volovskiy 2025-02-25 04:40:48 -05:00
parent f7002a782f
commit c94287f3a8
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@
'< Back': back,
'Colour': {
value: 0 | color_options.indexOf(s.color),
min: 0, max: 5,
min: 0, max: color_options.length - 1,
format: v => color_options[v],
onchange: v => {
s.color = color_options[v];
@ -66,7 +66,7 @@
},
'Ring Display': {
value: 0 | ring_options.indexOf(s.ring),
min: 0, max: 5,
min: 0, max: ring_options.length - 1,
format: v => ring_options[v],
onchange: v => {
s.ring = ring_options[v];