Added automatic update-merge of settings for new settings instead of falling back to defaults
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user