From e53cae752e285b26be5b0605ac81e481271c2e8b Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Sat, 5 Nov 2016 14:10:45 +0000 Subject: [PATCH] Fix user metadata flag not detecting priority changes Fixes #685. --- src/gui/html/elements/loot-plugin-editor.html | 2 ++ src/gui/query/get_game_data_query.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gui/html/elements/loot-plugin-editor.html b/src/gui/html/elements/loot-plugin-editor.html index d136bc15..b9064c5f 100644 --- a/src/gui/html/elements/loot-plugin-editor.html +++ b/src/gui/html/elements/loot-plugin-editor.html @@ -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; diff --git a/src/gui/query/get_game_data_query.h b/src/gui/query/get_game_data_query.h index 94a9e092..3ece0957 100644 --- a/src/gui/query/get_game_data_query.h +++ b/src/gui/query/get_game_data_query.h @@ -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();