Make sure we don't call both the yes and no handlers in prompts

This commit is contained in:
yflory
2017-06-26 16:23:55 +02:00
parent c431041e3f
commit 33ea8cb183
3 changed files with 21 additions and 5 deletions

View File

@@ -521,9 +521,9 @@ define([
if (_onDisplayNameChanged.indexOf(h) !== -1) { return; }
_onDisplayNameChanged.push(h);
};
common.changeDisplayName = function (newName) {
common.changeDisplayName = function (newName, isLocal) {
_onDisplayNameChanged.forEach(function (h) {
h(newName);
h(newName, isLocal);
});
};