Closed dpetrisko closed 5 years ago
Or, we could have the sliders auto-correct to a good value when moving out of a valid range.
They already do that
The idea is to alert the user why the selection is invalid
As I described in the chat, I don't think there are actually invalid combinations! es doesn't actually depend on n. Any non-negative value of es is meaningful and can be decoded correctly. Obviously, n doesn't depend on anything either. So essentially, if we just set upper and lower bounds on n and es, we should be good. I think 2<=n<=8 or 10 is ok, and then es should be 0 <= es <= 8 or 10 (it can really be anything though).
Fixed -- 2 <= n <= 8; 0 <= es <= 10. The sliders don't have an "out of range", so there's no need for a warning. b3f1efc
Maybe a little toast when you try to put n or es into an invalid range