diff --git a/src/main.rs b/src/main.rs index 9445c7d..b9764a1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -285,11 +285,12 @@ 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); } if row.button("+").clicked() { - &self.metadata[0].tags.push("".to_string()); + &self.metadata[0].tags.push(" ".to_string()); }; });