From 5f4484e0a1f46134ba0cb0113671d6eb37e138f8 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sat, 26 Oct 2024 16:03:02 +0200 Subject: [PATCH] make dependents detection more reliable --- core/wiki/functions/themes.tid | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/wiki/functions/themes.tid b/core/wiki/functions/themes.tid index a507a628d..1eebfdef6 100644 --- a/core/wiki/functions/themes.tid +++ b/core/wiki/functions/themes.tid @@ -17,7 +17,7 @@ tags: $:/tags/Global \function get.theme(metric) [function[get.base.theme],{$:/theme},addsuffix[/metrics/]addsuffix!is[missing]] :else[function[get.base.theme],{$:/theme},addsuffix[/metrics/]addsuffixis[shadow]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] -\function set.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},is[shadow]] :else[function[get.base.theme.metric],{$:/theme},!is[shadow]!is[missing]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] +\function set.theme.metric(metric) [function[get.base.theme.metric],{$:/theme},first[]is[shadow]] :else[function[get.base.theme.metric],{$:/theme},first[]!is[shadow]!is[missing]] :else[[$:/themes/tiddlywiki/vanilla/metrics/]addsuffix] \function get.base.functions.theme.recursive(theme) [get[dependents]enlist-input[]] :map[function[get.base.functions.theme],]