Преглед изворни кода

Add guard against autocompile being disabled

Alasdair Smith пре 8 година
родитељ
комит
96d7d83b90
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

+ 1 - 1
services/web/public/coffee/ide/pdf/controllers/PdfController.coffee

@@ -71,7 +71,7 @@ define [
 
 		autoCompileInterval = null
 		autoCompileIfReady = () ->
-			if $scope.pdf.compiling
+			if $scope.pdf.compiling or !$scope.autocompile_enabled
 				return
 
 			# Only checking linting if syntaxValidation is on and visible to the user