Auto compile on project join, not doc open

This commit is contained in:
James Allen 2014-07-22 13:38:34 +01:00
parent 688842de3c
commit cd8a94b108

View file

@ -4,7 +4,7 @@ define [
], (App, LogParser) ->
App.controller "PdfController", ["$scope", "$http", "ide", "$modal", "synctex", ($scope, $http, ide, $modal, synctex) ->
autoCompile = true
$scope.$on "doc:opened", () ->
$scope.$on "project:joined", () ->
return if !autoCompile
autoCompile = false
$scope.recompile(isAutoCompile: true)