From 80fbe2203a4eacfe45b36dd38e3b01b5b30fb292 Mon Sep 17 00:00:00 2001
From: Adrian Stoica <george.a.stoica@ntnu.no>
Date: Thu, 17 Oct 2019 19:53:37 +0200
Subject: [PATCH] modified the tagsbar to accept tag even if it is not in the
 autocomplete entries loading the new image for the delete icon (x)

---
 .../fxui/src/main/java/simpleex/ui/tags/TagsBar.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/simpleexample2/fxui/src/main/java/simpleex/ui/tags/TagsBar.java b/simpleexample2/fxui/src/main/java/simpleex/ui/tags/TagsBar.java
index 92ddcd0..5a46a2e 100644
--- a/simpleexample2/fxui/src/main/java/simpleex/ui/tags/TagsBar.java
+++ b/simpleexample2/fxui/src/main/java/simpleex/ui/tags/TagsBar.java
@@ -44,7 +44,7 @@ public class TagsBar extends HBox {
 		field.setOnAction(evt -> {
 			String text = field.getText();
 			// No Duplicates allowed
-			if (!text.isEmpty() && getEntries().contains(text) && !hBox.getChildren().stream()
+			if (!text.isEmpty() && /*getEntries().contains(text) && */ !hBox.getChildren().stream()
 					.anyMatch(s -> ((Tag) s).getTag().toLowerCase().equals(text.toLowerCase())))
 				hBox.getChildren().add(new Tag(text));
 			field.clear();
@@ -95,7 +95,7 @@ public class TagsBar extends HBox {
 	public class Tag extends HBox {
 
 		private Label textLabel = new Label();
-		private Label iconLabel = new Label(null, new ImageView(new Image(getClass().getResourceAsStream("x.png"))));
+		private Label iconLabel = new Label(null, new ImageView(new Image(getClass().getResourceAsStream("x1.png"))));
 
 		// Constructor
 		public Tag(String tag) {
-- 
GitLab