We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7254df6 commit e9b2c48Copy full SHA for e9b2c48
src/components/settings/Settings.cpp
@@ -38,10 +38,15 @@ void Settings::LoadSettingsFromFile() {
38
39
void Settings::SaveSettingsToFile() {
40
lfs_file_t settingsFile;
41
+ auto prevFace = settings.watchFace;
42
43
if (fs.FileOpen(&settingsFile, "/settings.dat", LFS_O_WRONLY | LFS_O_CREAT) != LFS_ERR_OK) {
44
return;
45
}
46
+ if (prevFace == Pinetime::Applications::WatchFace::CasioStyleG7710) {
47
+ settings.watchFace = Pinetime::Applications::WatchFace::Digital;
48
+ }
49
fs.FileWrite(&settingsFile, reinterpret_cast<uint8_t*>(&settings), sizeof(settings));
50
fs.FileClose(&settingsFile);
51
+ settings.watchFace = prevFace;
52
0 commit comments