From 0ede3ec68738516f948147839e93de67397c80e3 Mon Sep 17 00:00:00 2001 From: Ivan Zorin Date: Mon, 17 Feb 2025 20:46:29 +0300 Subject: [PATCH] Translation.h: reorder items in SettingsItemIndex properly and add the comment --- source/Core/Inc/Translation.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/Core/Inc/Translation.h b/source/Core/Inc/Translation.h index d412e48c..9aa51a84 100644 --- a/source/Core/Inc/Translation.h +++ b/source/Core/Inc/Translation.h @@ -54,6 +54,11 @@ extern const char *DebugMenu[]; extern const char *AccelTypeNames[]; extern const char *PowerSourceNames[]; +/* ! + * The order of the items inside this enum class SettingsItemIndex + * must be the same as the order of the related items + * in the "menuOptions" section of translations_definitions.json file. + */ enum class SettingsItemIndex : uint8_t { DCInCutoff, MinVolCell, @@ -90,6 +95,7 @@ enum class SettingsItemIndex : uint8_t { CooldownBlink, ScrollingSpeed, ReverseButtonTempChange, + ReverseButtonMenu, AnimSpeed, AnimLoop, Brightness, @@ -107,7 +113,6 @@ enum class SettingsItemIndex : uint8_t { SettingsReset, LanguageSwitch, SolderingTipType, - ReverseButtonMenu, NUM_ITEMS, };