Make sure we don't call both the yes and no handlers in prompts
This commit is contained in:
@@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user