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