You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
SharedPreferences: add erase_all() functionality
This commit is contained in:
@@ -193,6 +193,10 @@ class Editor:
|
||||
pass
|
||||
return self
|
||||
|
||||
def remove_all(self):
|
||||
self.temp_data = {}
|
||||
return self
|
||||
|
||||
def apply(self):
|
||||
"""Save changes to the file asynchronously (emulated)."""
|
||||
self.preferences.data = self.temp_data.copy()
|
||||
|
||||
Reference in New Issue
Block a user