Fix settings sync bugs

This commit is contained in:
the1812 2018-12-09 13:45:07 +08:00
parent 9ce4ff5384
commit b4577fa1f3
5 changed files with 10 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -137,7 +137,8 @@
function settingsChange(key, _, newValue) function settingsChange(key, _, newValue)
{ {
$(`input[type='checkbox'][key='${key}']`) $(`input[type='checkbox'][key='${key}']`)
.prop("checked", newValue); .prop("checked", newValue)
.change();
$(`input[type='text'][key='${key}']`).val(newValue); $(`input[type='text'][key='${key}']`).val(newValue);
} }
function syncGui() function syncGui()