From eb3951512d980dc9a6040dac79d1b1283256c470 Mon Sep 17 00:00:00 2001 From: FelisCatus Date: Tue, 8 Mar 2016 15:22:23 +0800 Subject: [PATCH] Use attached defaultProfileName to compose switchy rulelist. Fix #721. --- omega-web/src/omega/controllers/switch_profile.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/omega-web/src/omega/controllers/switch_profile.coffee b/omega-web/src/omega/controllers/switch_profile.coffee index 26a7494..4e258b2 100644 --- a/omega-web/src/omega/controllers/switch_profile.coffee +++ b/omega-web/src/omega/controllers/switch_profile.coffee @@ -5,7 +5,10 @@ angular.module('omega').controller 'SwitchProfileCtrl', ($scope, $rootScope, $scope.ruleListFormats = OmegaPac.Profiles.ruleListFormats exportRuleList = -> - text = OmegaPac.RuleList.Switchy.compose($scope.profile) + text = OmegaPac.RuleList.Switchy.compose( + rules: $scope.profile.rules + defaultProfileName: $scope.attachedOptions.defaultProfileName + ) eol = '\r\n' info = '\n'