SharedPreferences: add erase_all() functionality

This commit is contained in:
Thomas Farstrike
2025-11-26 11:41:42 +01:00
parent 2b8ea88961
commit 9ae929aad9
+4
View File
@@ -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()