-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Less frequent writes of settings.json to sd/flash
* krux.pages.settings_page accesses singleton "store" instead of class "Store" * krux.pages.settings_page explicitely calls store.save_settings() when exiting * krux.settings.Store adds attribute ".dirty" boolean to track settings changes * krux.settings.Store adds method ".update_file_location()" to delete old file * krux.settings.Store.save_settings() method writes only if ".dirty" and file would be altered * adds new tests and adjusts existing tests.
- Loading branch information
Jean Do
committed
Nov 26, 2023
1 parent
300b124
commit 72055e0
Showing
3 changed files
with
131 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters