aboutsummaryrefslogtreecommitdiff
path: root/import/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-02-18 16:37:59 +0100
committermetamuffin <metamuffin@disroot.org>2026-02-18 16:37:59 +0100
commit313e00bff8a21bfddb54130cffaad4af7eb36d48 (patch)
treefc7c29f122a273e6950927f87562d334009cee87 /import/src
parent9c9ded0eea1dd5e18151434c96715b7def9c0fd2 (diff)
downloadjellything-313e00bff8a21bfddb54130cffaad4af7eb36d48.tar
jellything-313e00bff8a21bfddb54130cffaad4af7eb36d48.tar.bz2
jellything-313e00bff8a21bfddb54130cffaad4af7eb36d48.tar.zst
reenable visility
Diffstat (limited to 'import/src')
-rw-r--r--import/src/lib.rs16
1 files changed, 10 insertions, 6 deletions
diff --git a/import/src/lib.rs b/import/src/lib.rs
index a6399e9..73f2b91 100644
--- a/import/src/lib.rs
+++ b/import/src/lib.rs
@@ -237,12 +237,16 @@ fn import_traverse(
if let Some(parent) = parent {
node = node.as_object().extend(NO_PARENT, [parent]);
}
- if iflags.hidden {
- node = node.as_object().insert(NO_VISIBILITY, VISI_HIDDEN);
- }
- if iflags.reduced {
- node = node.as_object().insert(NO_VISIBILITY, VISI_REDUCED);
- }
+ node = node.as_object().insert(
+ NO_VISIBILITY,
+ if iflags.hidden {
+ VISI_HIDDEN
+ } else if iflags.reduced {
+ VISI_REDUCED
+ } else {
+ VISI_VISIBLE
+ },
+ );
node
})?;