Added automatic update-merge of settings for new settings instead of falling back to defaults

This commit is contained in:
2023-06-14 11:45:12 +02:00
parent 1c6d062f2d
commit 468c443ebd
14 changed files with 132 additions and 168 deletions

View File

@ -39,7 +39,6 @@ class _SettingsState extends State<Settings> {
),
body: ListView(
children: [
ListTile(
leading: const Icon(Icons.logout_outlined),
title: const Text("Konto abmelden"),
@ -248,7 +247,7 @@ class _SettingsState extends State<Settings> {
confirmButton: "Unwiederruflich Löschen",
onConfirm: () {
setState(() {
Provider.of<SettingsProvider>(context, listen: false).init(resetConfig: true);
Provider.of<SettingsProvider>(context, listen: false).reset();
});
},
).asDialog(context);