Language selection auto-save option (#20915)
This commit is contained in:
parent
219f92c4ca
commit
164199614c
|
@ -1534,6 +1534,9 @@
|
||||||
//#define LCD_LANGUAGE_3 de
|
//#define LCD_LANGUAGE_3 de
|
||||||
//#define LCD_LANGUAGE_4 es
|
//#define LCD_LANGUAGE_4 es
|
||||||
//#define LCD_LANGUAGE_5 it
|
//#define LCD_LANGUAGE_5 it
|
||||||
|
#ifdef LCD_LANGUAGE_2
|
||||||
|
//#define LCD_LANGUAGE_AUTO_SAVE // Automatically save language to EEPROM on change
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
static void set_lcd_language(const uint8_t inlang) {
|
static void set_lcd_language(const uint8_t inlang) {
|
||||||
ui.set_language(inlang);
|
ui.set_language(inlang);
|
||||||
(void)settings.save();
|
TERN_(LCD_LANGUAGE_AUTO_SAVE, (void)settings.save());
|
||||||
}
|
}
|
||||||
|
|
||||||
void menu_language() {
|
void menu_language() {
|
||||||
|
|
Loading…
Reference in a new issue