mirror of
https://github.com/an-anime-team/an-anime-game-launcher.git
synced 2024-12-30 05:28:15 +03:00
Fix checkbox not updating config
if valueChanged was a function Configs.set would not update the config
This commit is contained in:
parent
206221ebac
commit
0c752de182
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue