From 64c3d352ce4199a190352992a1a0ee25886346b1 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 26 Sep 2017 18:29:56 +0200 Subject: [PATCH] fix auto compile --- src/app/tabs/compile-tab.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 419876fadb..713504bc09 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -174,7 +174,7 @@ function compileTab (container, appAPI, appEvents, opts) {
${compileIcon} Start to compile
- + Auto compile
${warnCompilationSlow} @@ -215,7 +215,9 @@ function compileTab (container, appAPI, appEvents, opts) { autoCompile = appAPI.config.get('autoCompile') } appAPI.config.set('autoCompile', autoCompile) - autoCompileInput.setAttribute('checked', autoCompile) + if (autoCompile) { + autoCompileInput.setAttribute('checked', autoCompile) + } autoCompileInput.addEventListener('change', function () { appAPI.config.set('autoCompile', autoCompileInput.checked)