diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-22 13:05:38 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-22 13:05:38 +0100 |
commit | 834ad7a58f5b22375a10db1483f5cdbb09050360 (patch) | |
tree | 01762cada9a5fa8d711c6cc33a64babecab600a8 | |
parent | e8f2f980488318fb0e37c1fe6bc1300e97327b6e (diff) |
TagPrint: omit tags which were disabled by the client
Closes #471
-rw-r--r-- | src/TagPrint.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/TagPrint.cxx b/src/TagPrint.cxx index 7261a4f30..412098a97 100644 --- a/src/TagPrint.cxx +++ b/src/TagPrint.cxx @@ -25,8 +25,9 @@ void tag_print_types(Response &r) noexcept { + const auto tag_mask = global_tag_mask & r.GetTagMask(); for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++) - if (IsTagEnabled(i)) + if (tag_mask.Test(TagType(i))) r.Format("tagtype: %s\n", tag_item_names[i]); } |