Browse Source

Language selection auto-save option (#20915)

vanilla_fb_2.0.x
ConstantijnCrijnen 4 years ago
committed by Scott Lahteine
parent
commit
164199614c
  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_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
// //

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

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