From c457807bf7c020c2a40750594c3c8bc9c083c1f2 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 18 Jun 2018 22:12:26 +0800 Subject: [PATCH] do not change tab index when deleting unselected rpc setting in ariang settings page --- src/scripts/controllers/settings-ariang.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/controllers/settings-ariang.js b/src/scripts/controllers/settings-ariang.js index 25aeac7..2eeba44 100644 --- a/src/scripts/controllers/settings-ariang.js +++ b/src/scripts/controllers/settings-ariang.js @@ -177,7 +177,7 @@ ariaNgSettingService.removeRpcSetting(setting); $scope.context.rpcSettings.splice(index, 1); - if (index >= $scope.context.rpcSettings.length) { + if ($scope.isCurrentRpcTab(index) && index >= $scope.context.rpcSettings.length) { $scope.changeRpcTab($scope.context.rpcSettings.length - 1); } }, false, {