mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
add authorization
This commit is contained in:
@@ -33,9 +33,10 @@ class _SwitchSettingState extends State<_SwitchSetting> {
|
||||
onChanged: (value) {
|
||||
setState(() {
|
||||
appdata.settings[widget.settingKey] = value;
|
||||
appdata.saveData();
|
||||
});
|
||||
widget.onChanged?.call();
|
||||
appdata.saveData().then((_) {
|
||||
widget.onChanged?.call();
|
||||
});
|
||||
},
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user