Fix user metadata flag not detecting priority changes

Fixes #685.
This commit is contained in:
Oliver Hamlet
2016-11-05 14:10:45 +00:00
parent 95f3d6a3c5
commit e53cae752e
2 changed files with 4 additions and 0 deletions
@@ -288,9 +288,11 @@ loot-editor-close
changed, so record both. */
if (this.$.priorityValue.value !== oldData.priority) {
plugin.priority = this.$.priorityValue.value;
plugin.userlist.priority = this.$.priorityValue.value;
}
if (this.$.globalPriorityValue.value !== oldData.globalPriority) {
plugin.globalPriority = this.$.globalPriorityValue.value;
plugin.userlist.globalPriority = this.$.globalPriority.value;
}
plugin.userlist.enabled = this.$.enableEdits.checked;
+2
View File
@@ -136,6 +136,8 @@ private:
YAML::Node node;
node["enabled"] = metadata.Enabled();
node["priority"] = metadata.LocalPriority().getValue();
node["globalPriority"] = metadata.GlobalPriority().getValue();
node["after"] = metadata.LoadAfter();
node["req"] = metadata.Reqs();
node["inc"] = metadata.Incs();