Browse Source

Language selection auto-save option (#20915)

vanilla_fb_2.0.x
ConstantijnCrijnen 4 years ago
committed by GitHub
parent
commit
d45ad8f827
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      Marlin/Configuration_adv.h
  2. 2
      Marlin/src/lcd/menu/menu_language.cpp

3
Marlin/Configuration_adv.h

@ -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
//

2
Marlin/src/lcd/menu/menu_language.cpp

@ -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…
Cancel
Save