Writing is now also back!

Development
Johannes Hendrik Gerard van der Weide 2023-12-12 17:35:51 +01:00
parent adc11ec654
commit af00347fa5
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ pub fn load_yaml_folder(default: String, folder: &Path) -> Vec<String> {
}
}
if return_yaml.capacity() < 1 {
return_yaml.push(default);
return_yaml.push(default.clone());
fs::write(folder.join("default.yml"), default.clone()).expect("Error writing default");
}
return return_yaml;
}