From d79de3966a8e2749138bd15f40e8e782099e5d10 Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Wed, 25 Mar 2015 12:24:31 +0100 Subject: [PATCH] avoid update event cycle when setting custom profile --- js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/index.js b/js/index.js index 9787bdd..9195d22 100644 --- a/js/index.js +++ b/js/index.js @@ -149,7 +149,10 @@ var profileId = routingOptions.getCustomProfile(); router.uploadProfile(profileId, evt.profileText, function(err, profile) { if (!err) { - routingOptions.setCustomProfile(profile); + routingOptions.setCustomProfile(profile, true); + updateRoute({ + options: routingOptions.getOptions() + }); if (!saveWarningShown) { BR.message.showWarning('Note: Uploaded custom profiles are only cached temporarily on the server.' + '
Please save your edits to your local PC.');