fix tags priority

This commit is contained in:
yggverse 2024-12-16 15:40:53 +02:00
parent 44c92831c0
commit cea8e8f41d

View File

@ -17,8 +17,9 @@ impl Tag {
let found = found::new();
// Init `Self`
tag_table.add(&current);
tag_table.add(&found);
tag_table.add(&current); // keep current priority as `current` overwrites `found` tag!
// https://docs.gtk.org/gtk4/method.TextTag.set_priority.html
Self { current, found }
}