diff --git a/resources/report/html/loot-plugin-editor.html b/resources/report/html/loot-plugin-editor.html
index 30ccc6b1..58220a54 100644
--- a/resources/report/html/loot-plugin-editor.html
+++ b/resources/report/html/loot-plugin-editor.html
@@ -250,6 +250,7 @@ loot-editor-close
observe: {
'data.isGlobalPriority': 'onPriorityChange',
'data.modPriority': 'onPriorityChange',
+ 'data.userlist': 'onDataCacheChange',
},
attached: function() {
@@ -294,6 +295,13 @@ loot-editor-close
}
},
+ onDataCacheChange: function(oldValue, newValue) {
+ if (this.data) {
+ /* Set the new editor data. */
+ this.setEditorData(this.data);
+ }
+ },
+
readFromEditor: function(oldData) {
/* Need to turn all the editor controls' values into data to
process. The control values can be compared with the existing
diff --git a/resources/report/js/events.js b/resources/report/js/events.js
index 31cedb38..a6936400 100644
--- a/resources/report/js/events.js
+++ b/resources/report/js/events.js
@@ -228,6 +228,7 @@ function onClearAllMetadata(evt) {
for (var i = 0; i < loot.game.plugins.length; ++i) {
if (loot.game.plugins[i].name == plugin.name) {
loot.game.plugins[i].userlist = undefined;
+ loot.game.plugins[i].editor = undefined;
loot.game.plugins[i].modPriority = plugin.modPriority;
loot.game.plugins[i].isGlobalPriority = plugin.isGlobalPriority;
@@ -526,6 +527,7 @@ function onClearMetadata(evt) {
for (var i = 0; i < loot.game.plugins.length; ++i) {
if (loot.game.plugins[i].id == evt.target.id) {
loot.game.plugins[i].userlist = undefined;
+ loot.game.plugins[i].editor = undefined;
loot.game.plugins[i].modPriority = result.modPriority;
loot.game.plugins[i].isGlobalPriority = result.isGlobalPriority;