changeset 66:df652edb3c0e

TabBoard: Don't record board tags if the board is empty
author Fox
date Fri, 23 Dec 2022 22:41:51 +0100
parents 4dd7d78e19a1
children 3f0b4e44c6ef
files src/junotu/TabBoard.java
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/junotu/TabBoard.java	Fri Dec 23 22:25:27 2022 +0100
+++ b/src/junotu/TabBoard.java	Fri Dec 23 22:41:51 2022 +0100
@@ -608,8 +608,13 @@
 	}
 	
 	card.titleSet( title.getText() );
-	card.tagValueSetOnly( Card.TAG_BOARD, null );
-	card.tagValueSetOnly( Card.TAG_BOARD_COLUMNS, columnIdentifiers );
+	if( columnIdentifiers.length() > 0 ) {
+	    card.tagValueSetOnly( Card.TAG_BOARD, null );
+	    card.tagValueSetOnly( Card.TAG_BOARD_COLUMNS, columnIdentifiers );
+	} else {
+	    card.tagRemove( Card.TAG_BOARD );
+	    card.tagRemove( Card.TAG_BOARD_COLUMNS );
+	}
 	
 	Main.database.cardUpdate(card);