Workaround for Clearing Tag Vector of empty elements

This commit is contained in:
Neshura 2023-09-29 00:26:00 +02:00
parent 9807b378cb
commit a67d9ae25d
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -285,6 +285,7 @@ impl eframe::App for Generator<'_> {
ui.horizontal(|row| {
row.label("Tags:");
&mut self.metadata[0].tags.retain(|x| x != "");
for mut tag in &mut self.metadata[0].tags {
text_input(row, &mut tag, "", false);
}