Fix error in tracked quests
Leandro Silva [10-19-18 - 23:02]
Fix error in tracked quests
diff --git a/LeoAltholic.txt b/LeoAltholic.txt
index 6de8afe..00900f4 100644
--- a/LeoAltholic.txt
+++ b/LeoAltholic.txt
@@ -1,6 +1,6 @@
## Title: Leo's Altholic
## APIVersion: 100024 100025
-## Version: 1.3.5
+## Version: 1.3.6
## Author: |c39B027@LeandroSilva|r
## SavedVariables: LeoAltholicSavedVariables
## OptionalDependsOn: LibStub LibFeedback LibAddonMenu-2.0
diff --git a/LeoAltholicInit.lua b/LeoAltholicInit.lua
index 04c3ef0..db9557c 100644
--- a/LeoAltholicInit.lua
+++ b/LeoAltholicInit.lua
@@ -4,5 +4,5 @@ LeoAltholicUI = LeoAltholicUI or {}
LeoAltholic.name = "LeoAltholic"
LeoAltholic.displayName = "Leo's Altholic"
-LeoAltholic.version = "1.3.5"
+LeoAltholic.version = "1.3.6"
LeoAltholic.chatPrefix = "|c39B027" .. LeoAltholic.name .. "|r: "
diff --git a/ui/tracked.lua b/ui/tracked.lua
index 51316b2..1c54803 100644
--- a/ui/tracked.lua
+++ b/ui/tracked.lua
@@ -63,11 +63,11 @@ function LeoAltholicUI.InitTrackedPanel()
else
local diff = GetTimeStamp() - char.quests.tracked[i].lastDone
if diff < 3600 then
- child.data = zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_MINUTES_DESC), math.floor(diff / 60)))
+ done:SetText(zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_MINUTES_DESC), math.floor(diff / 60))))
elseif diff < 86400 then
- child.data = zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_HOURS_DESC), math.floor(diff / 3600)))
+ done:SetText(zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_HOURS_DESC), math.floor(diff / 3600))))
else
- child.data = zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_DAYS_DESC), math.floor(diff / 86400)))
+ done:SetText(zo_strformat(GetString(SI_TIME_DURATION_AGO), zo_strformat(GetString(SI_TIME_FORMAT_DAYS_DESC), math.floor(diff / 86400))))
end
end
else