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

Strip content that is included in system library

This commit is contained in:
2023-08-31 16:10:19 +02:00
parent 7d6a6ee9b3
commit af4ec8898a
4 changed files with 34 additions and 0 deletions

View File

@ -172,6 +172,24 @@ impl OnkostarEditor {
});
}
pub fn strip_system_library_content(&mut self) {
self.editor
.property_catalogue
.retain(|e| !e.is_system_library_content());
self.editor
.data_catalogue
.retain(|e| !e.is_system_library_content());
self.editor
.data_form
.retain(|e| !e.is_system_library_content());
self.editor
.unterformular
.retain(|e| !e.is_system_library_content());
}
pub fn print_diff(&mut self, other: &mut Self, strict: bool) {
println!();