Settings - Sound: Allow to set items to None

This commit is contained in:
vanous
2026-06-07 09:13:02 +02:00
parent 484d8cb093
commit 7703b3ae36
6 changed files with 28 additions and 21 deletions

View File

@@ -322,7 +322,8 @@ void DataStore::loadPrefsInt(const char *filename, NodePrefs& _prefs, double& no
rd(&_prefs.trail_show_pace, sizeof(_prefs.trail_show_pace));
// These three were appended together; an older file leaves stray bytes here
// (the old tail sentinel gets partly consumed), so clamp out-of-range values.
if (_prefs.notif_melody_ad > 2) _prefs.notif_melody_ad = 0;
// Values: 0=built-in, 1=melody1, 2=melody2, 3=none.
if (_prefs.notif_melody_ad > 3) _prefs.notif_melody_ad = 0;
if (_prefs.units_imperial > 1) _prefs.units_imperial = 0;
if (_prefs.trail_show_pace > 1) _prefs.trail_show_pace = 0;