Fix checkbox not updating config

if valueChanged was a function Configs.set would not update the config
This commit is contained in:
Maroxy 2022-01-30 17:39:29 +01:00
parent 206221ebac
commit 0c752de182
No known key found for this signature in database
GPG key ID: F4B27EADB21E3021

View file

@ -16,12 +16,12 @@
Configs.get(prop).then((value) => active = value as boolean); Configs.get(prop).then((value) => active = value as boolean);
function updateCheckbox() async function updateCheckbox()
{ {
active = !active; active = !active;
if (prop) if (prop)
Configs.set(prop, active); await Configs.set(prop, active);
if (valueChanged) if (valueChanged)
valueChanged(active); valueChanged(active);