1
0
mirror of https://github.com/pcvolkmer/osc-variant.git synced 2025-07-03 09:12:54 +00:00

Add support for script replacing

This commit is contained in:
2023-06-14 00:34:27 +02:00
parent c9046a3e02
commit 92acd7655a
5 changed files with 41 additions and 1 deletions

View File

@ -173,6 +173,12 @@ impl DataForm {
{
entry.anzeige_auswahl = Some(profile_anzeige_auswahl.clone())
}
if let Some(scripts_code) = &form_reference.escaped_scripts_code() {
entry.scripts = Some(Script {
code: scripts_code.clone(),
valid: true,
})
}
}
});

View File

@ -185,6 +185,12 @@ impl Unterformular {
{
entry.anzeige_auswahl = Some(profile_anzeige_auswahl.clone())
}
if let Some(scripts_code) = &form_reference.escaped_scripts_code() {
entry.scripts = Some(Script {
code: scripts_code.clone(),
valid: true,
})
}
}
});