add comment about menu positions and the final decision and rationale

This commit is contained in:
bunnie 2022-11-24 00:34:51 +08:00
parent 9e79dd5292
commit b9682c240f

View file

@ -187,6 +187,14 @@ impl DevicePrefs {
AutobacklightOnBoot,
AutobacklightTimeout,
KeyboardLayout,
// Note: this vec sets the order of items in the preferences menu
// The CI system assumes that the time setting items are always at
// the bottom of the preferences menu, in this particular order.
// If you move these elsewhere, you must adjust the CI system because
// it 'dead reckons' to these menu items based on their assumed position.
// This is done in part to force testing of menu navigation, as opposed
// to "cheating" around this problem and invoking all the CI-related commands
// as scripts.
SetTime,
SetTimezone,
];