Fix refreshOnProfileChange not working. Fix #188.

This commit is contained in:
FelisCatus 2015-01-13 13:48:56 +08:00
parent 297775ca4f
commit 0cd115f8f0

View File

@ -115,7 +115,7 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget,
'validResultProfiles', 'refreshOnProfileChange', 'externalProfile', 'validResultProfiles', 'refreshOnProfileChange', 'externalProfile',
'proxyNotControllable' 'proxyNotControllable'
]).then ([availableProfiles, currentProfileName, isSystemProfile, ]).then ([availableProfiles, currentProfileName, isSystemProfile,
validResultProfiles, refreshOnProfileChange, externalProfile, validResultProfiles, refresh, externalProfile,
proxyNotControllable]) -> proxyNotControllable]) ->
$scope.proxyNotControllable = proxyNotControllable $scope.proxyNotControllable = proxyNotControllable
return if proxyNotControllable return if proxyNotControllable
@ -124,7 +124,7 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget,
$scope.currentProfileName = currentProfileName $scope.currentProfileName = currentProfileName
$scope.isSystemProfile = isSystemProfile $scope.isSystemProfile = isSystemProfile
$scope.externalProfile = externalProfile $scope.externalProfile = externalProfile
refreshOnProfileChange = refreshOnProfileChange refreshOnProfileChange = refresh
charCodeUnderscore = '_'.charCodeAt(0) charCodeUnderscore = '_'.charCodeAt(0)
profilesByNames = (names) -> profilesByNames = (names) ->