feat: import settings on login page

This commit is contained in:
rebelonion 2024-02-04 03:59:52 -06:00
parent d80b250650
commit 7a67fbb980
6 changed files with 123 additions and 4 deletions

View file

@ -242,6 +242,13 @@ object PrefManager {
)
}
/**
* @param prefs Map of preferences to import
* @param prefLocation Location to import to
* @return true if successful, false if error
*/
@Suppress("UNCHECKED_CAST")
fun importAllPrefs(prefs: Map<String, *>, prefLocation: Location): Boolean {
val pref = getPrefLocation(prefLocation)