diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-31 22:34:08 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2017-10-31 23:42:37 +0100 |
| commit | 49a8303ca6e73419a3e26b963f78c61c6ab26d3b (patch) | |
| tree | d6539ebffe9302084376432f6d13ea5097b210ea /examples | |
| parent | b40a947c533c9560fefa19eef991caa2eeb93614 (diff) | |
Require manual mode setting for choices
Do not change the mode if y is assigned to a choice symbol inside a
choice in m mode, for example. Require Choice.set_value() to be called
instead.
This makes choices way less magical and more menuconfig-like. It would
also be confusing to be able to assign y to a choice symbol when y is
not in sym.assignable.
Set the mode manually in load_config() (y assigned to a choice symbol =>
y mode, and ditto for m). Change the warning for inconsistent values to
one that's probably less confusing, though the old one was closer to the
warning printed by the C implementation.
Need to fix a bunch of tests too...
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
