summaryrefslogtreecommitdiff
path: root/src/model/realize.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-12-07 12:33:48 +0100
committerLaurenz <laurmaedje@gmail.com>2022-12-07 14:01:20 +0100
commit11c7ceb29e762f6dd1d093d9fdb57e9612a92df0 (patch)
treecf68d1d206a4718dd20f4dd8de8e6edc931012e1 /src/model/realize.rs
parente1c0cda6c8505ad2efc347afc80868296e56cb62 (diff)
Extend math library
Diffstat (limited to 'src/model/realize.rs')
-rw-r--r--src/model/realize.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/model/realize.rs b/src/model/realize.rs
index b4e38e30..862bc8b6 100644
--- a/src/model/realize.rs
+++ b/src/model/realize.rs
@@ -7,6 +7,10 @@ pub fn applicable(target: &Content, styles: StyleChain) -> bool {
return true;
}
+ if target.has::<dyn Show>() && target.is_pristine() {
+ return true;
+ }
+
// Find out how many recipes there are.
let mut n = styles.recipes().count();