| 49 | } |
| 50 | |
| 51 | bool save(const KeyboardSettings& settings) { |
| 52 | std::map<std::string, std::string> map; |
| 53 | map[KEY_BACKLIGHT_ENABLED] = settings.backlightEnabled ? "1" : "0"; |
| 54 | map[KEY_BACKLIGHT_BRIGHTNESS] = std::to_string(settings.backlightBrightness); |
| 55 | map[KEY_BACKLIGHT_TIMEOUT_ENABLED] = settings.backlightTimeoutEnabled ? "1" : "0"; |
| 56 | map[KEY_BACKLIGHT_TIMEOUT_MS] = std::to_string(settings.backlightTimeoutMs); |
| 57 | return file::savePropertiesFile(SETTINGS_FILE, map); |
| 58 | } |
| 59 | |
| 60 | } |
nothing calls this directly
no test coverage detected