fix: Tag automation on tag creation

Tagging by color only worked on manually invoking the
`annotation.color = ()` setter. Now it works on initial
instance creation.
This commit is contained in:
Marty Oehme 2024-01-24 11:20:00 +01:00
parent 333bd279b9
commit f6c0189529
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 2 additions and 2 deletions

View File

@ -42,11 +42,11 @@ class Annotation:
) -> None:
self.minimum_similarity_color = minimum_similarity_color
self.file = file
self.color = color
self._color = color
self.content = content
self.note = note
self.page = page
self.tag = tag
self.tag = tag or self._tag_from_colorname(self.colorname or "")
self.type = type
def format(self, formatting: str, doc: Document = Document()):