tag/Settings: add function IsTagEnabled() wrapping access to ignore_tag_items[]

This commit is contained in:
Max Kellermann
2015-08-24 10:52:08 +02:00
parent 7aaa4dda22
commit 60c077c790
5 changed files with 24 additions and 5 deletions

View File

@@ -27,7 +27,7 @@ void
tag_print_types(Response &r)
{
for (unsigned i = 0; i < TAG_NUM_OF_ITEM_TYPES; i++)
if (!ignore_tag_items[i])
if (IsTagEnabled(i))
r.Format("tagtype: %s\n", tag_item_names[i]);
}