From dd64551a36d6e2e1b2ad43787e87dddc46ae4a9f Mon Sep 17 00:00:00 2001 From: eight Date: Thu, 9 Nov 2017 09:02:07 +0800 Subject: [PATCH] Fix: set dirty prop in one line --- manage/config-dialog.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 30509e6f..9831211c 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -137,8 +137,7 @@ function configDialog(style) { function useDefault() { for (const key of Object.keys(vars)) { const va = vars[key]; - va.dirty = va.value !== null && va.value !== undefined && - va.value !== va.default; + va.dirty = va.value !== null && va.value !== undefined && va.value !== va.default; va.value = null; } drawValues();