diff --git a/shared/src/lib.rs b/shared/src/lib.rs index f38ab29..13f7fc3 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -196,6 +196,8 @@ pub struct LanguageSettings { pub grammar_parser: String, pub run_on_lemmas: Vec, pub suggest_on_lemmas: Vec, + #[serde(default)] + pub derived_from_template: bool, } impl Default for Settings { @@ -231,6 +233,7 @@ impl Default for LanguageSettings { grammar_parser: String::new(), suggest_on_lemmas: Vec::new(), run_on_lemmas: Vec::new(), + derived_from_template: false, } } } diff --git a/src-tauri/src/new_language_template.rs b/src-tauri/src/new_language_template.rs index 1022d28..97161e2 100644 --- a/src-tauri/src/new_language_template.rs +++ b/src-tauri/src/new_language_template.rs @@ -116,6 +116,7 @@ pub async fn use_language_template( grammar_parser, run_on_lemmas: details.run_on_lemmas, suggest_on_lemmas: details.suggest_on_lemmas, + derived_from_template: true, ..Default::default() }; state