mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #1017 from sharelatex/as-fix-autocompile-loop
Prevent autocompile loop
This commit is contained in:
commit
e91ab3bf83
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
@ -125,6 +125,9 @@ define [
|
|||
|
||||
$scope.uncompiledChanges = false
|
||||
recalculateUncompiledChanges = () ->
|
||||
if !$scope.autocompile_enabled
|
||||
# Auto-compile was disabled
|
||||
$scope.uncompiledChanges = false
|
||||
if $scope.ui.pdfHidden
|
||||
# Don't bother auto-compiling if pdf isn't visible
|
||||
$scope.uncompiledChanges = false
|
||||
|
|
Loading…
Reference in a new issue