sbitx icon indicating copy to clipboard operation
sbitx copied to clipboard

Improve handling of errors when saving user settings

Open sbeckman opened this issue 1 year ago • 0 comments

This change will cause the next attempt to write the user settings file when there is a file write error to be delayed by 30 seconds,

For example, if the user decides to write protect the user settings file to reduce wear on the sd card, the code will detect the error and return with the settings_updated flag cleared. However the last_save_at variable was not getting updated during the handling of this error, so the function could be called again immediately.

sbeckman avatar Jan 20 '24 22:01 sbeckman