Skip to content

Commit

Permalink
Tag bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
CoreyD97 committed Feb 23, 2023
1 parent 70fa963 commit c7f1854
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected ColorizingFilterRule(String name, String filter){
@Override
public boolean equals(Object obj) {
if(obj instanceof ColorizingFilterRule){
return ((TableColorRule) obj).getUuid().equals(this.getUuid());
return ((ColorizingFilterRule) obj).getUuid().equals(this.getUuid());
}else{
return super.equals(obj);
}
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/com/nccgroup/loggerplusplus/filter/tag/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public void setEnabled(boolean enabled) {
shouldRetest = true;
}

@Override
public void setPriority(short priority) {
super.setPriority(priority);
shouldRetest = true;
}

@Override
public int compareTo(Tag tag) {
return ((Comparable) this.getPriority()).compareTo(tag.getPriority());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ public void onTagChange(final Tag filter) {
public void onTagAdd(final Tag filter) {
if (!filter.isEnabled() || filter.getFilterExpression() == null)
return;
createTagTestingWorker(filter, false);
createTagTestingWorker(filter, false).execute();
}

@Override
Expand Down

0 comments on commit c7f1854

Please sign in to comment.