diff --git a/TodoChecklister.toc b/TodoChecklister.toc index c299a50..41f2a76 100644 --- a/TodoChecklister.toc +++ b/TodoChecklister.toc @@ -2,7 +2,7 @@ ## Title: TodoChecklister ## Author: Matheus Assis Rios (github.com/AssisrMatheus) ## Notes: I have bad memory so I made this. A todolist/checklist AddOn for World of Warcraft. -## Version: 1.2.2 +## Version: 1.2.3 ## DefaultState: enabled ## OptionalDeps: LibStub, LibDataBroker ## SavedVariables: TodoChecklisterDB, TodoChecklisterMapIcon, TodoChecklisterSettingsDB diff --git a/src/components/TodoChecklister.lua b/src/components/TodoChecklister.lua index 8129abe..50a5dab 100644 --- a/src/components/TodoChecklister.lua +++ b/src/components/TodoChecklister.lua @@ -221,6 +221,14 @@ function TodoChecklisterFrame:PaintItem(frame, todoItem, index) frame.TodoContent:SetWidth(TodoItemsScrollFrame:GetWidth() - frame.RemoveButton:GetWidth() - 23) if (self.displayLinked) then + local identifier + + if (todoItem.id) then + identifier = todoItem.id + else + identifier = todoItem.text + end + FunctionUtils:Memoize( function() -- Startup regex process by storing string values @@ -267,8 +275,8 @@ function TodoChecklisterFrame:PaintItem(frame, todoItem, index) frame.TodoContent.FontText:SetText(todoItem.text) end end, - todoItem.id .. self.memoizationId, - todoItem.id .. "Count" + identifier .. self.memoizationId, + identifier .. "Count" ) else frame.TodoContent.FontText:SetText(todoItem.text)