Fix: set dirty prop in one line
This commit is contained in:
parent
c17433c350
commit
dd64551a36
|
@ -137,8 +137,7 @@ function configDialog(style) {
|
||||||
function useDefault() {
|
function useDefault() {
|
||||||
for (const key of Object.keys(vars)) {
|
for (const key of Object.keys(vars)) {
|
||||||
const va = vars[key];
|
const va = vars[key];
|
||||||
va.dirty = va.value !== null && va.value !== undefined &&
|
va.dirty = va.value !== null && va.value !== undefined && va.value !== va.default;
|
||||||
va.value !== va.default;
|
|
||||||
va.value = null;
|
va.value = null;
|
||||||
}
|
}
|
||||||
drawValues();
|
drawValues();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user