aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Winston2024-06-09 21:57:15 -0400
committerBen Winston2024-06-09 21:57:15 -0400
commit75880d101107529ec214a7b7c91e79966cbffec7 (patch)
tree243248625e35aa3cf63e23a91dffc0c2fda4df3f
parent587d0af0dd2060a033a69ea641e3993511809a7d (diff)
anything we don't 'show', we shouldn't ask someone to 'add'
-rw-r--r--booki.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/booki.c b/booki.c
index bfdcf24..f6eea61 100644
--- a/booki.c
+++ b/booki.c
@@ -1023,8 +1023,8 @@ void add(char *booki_file) {
DataField datafield;
for (int i = 0; i < BOOK_FIELDS_COUNT; i++) {
datafield = BOOK_FIELDS[i];
- // skip ID and _other for new books
- if (ATTR_MATCH(datafield.name, "id") || ATTR_MATCH(datafield.name, "_other"))
+ // skip anything we don't show
+ if (!datafield.show)
continue;
// otherwise, always write the name first
fputs(datafield.name, edit_file);