From e7e578f20c4fbb314f7e5b5ca5e0d0ee570dbc07 Mon Sep 17 00:00:00 2001 From: Brendon Duncan Date: Thu, 24 May 2018 18:36:20 -0700 Subject: [PATCH] Manually reversing 2 commits. --- src/js/controllers/tab-scan.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/controllers/tab-scan.js b/src/js/controllers/tab-scan.js index c29be53ad..4908a6f65 100644 --- a/src/js/controllers/tab-scan.js +++ b/src/js/controllers/tab-scan.js @@ -61,7 +61,10 @@ angular.module('copayApp.controllers').controller('tabScanController', function( $scope.$on("$ionicView.afterEnter", function() { // try initializing and refreshing status any time the view is entered - scannerService.gentleInitialize(); + if(!scannerService.isInitialized()) { + scannerService.gentleInitialize(); + } + activate(); }); function activate(){