avoid update event cycle when setting custom profile
This commit is contained in:
parent
5a10a3a8f7
commit
d79de3966a
1 changed files with 4 additions and 1 deletions
|
|
@ -149,7 +149,10 @@
|
||||||
var profileId = routingOptions.getCustomProfile();
|
var profileId = routingOptions.getCustomProfile();
|
||||||
router.uploadProfile(profileId, evt.profileText, function(err, profile) {
|
router.uploadProfile(profileId, evt.profileText, function(err, profile) {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
routingOptions.setCustomProfile(profile);
|
routingOptions.setCustomProfile(profile, true);
|
||||||
|
updateRoute({
|
||||||
|
options: routingOptions.getOptions()
|
||||||
|
});
|
||||||
if (!saveWarningShown) {
|
if (!saveWarningShown) {
|
||||||
BR.message.showWarning('Note: Uploaded custom profiles are only cached temporarily on the server.'
|
BR.message.showWarning('Note: Uploaded custom profiles are only cached temporarily on the server.'
|
||||||
+ '<br/>Please save your edits to your local PC.');
|
+ '<br/>Please save your edits to your local PC.');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue