From 3fd9daf009321daa994bcdad18028ad574bdc7af Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Wed, 16 Dec 2020 15:31:30 -0500 Subject: [PATCH] Defer updates until fully loaded --- TillerTracker.lua | 16 ++++++++++++++++ TillerTracker.toc | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/TillerTracker.lua b/TillerTracker.lua index 15443d6..55e967b 100644 --- a/TillerTracker.lua +++ b/TillerTracker.lua @@ -363,6 +363,10 @@ local function SetSort(cell, sort) private.db.global.sort_dir = "ASC" end + if not private.loaded then + return + end + TillerTracker:UpdateData() TillerTracker:UpdateTooltip() end @@ -648,6 +652,10 @@ function LDB.OnEnter(self) end function TillerTracker:QUEST_LOG_UPDATE() + if not private.loaded then + return + end + TillerTracker:UpdateData() TillerTracker:UpdateText() @@ -659,6 +667,10 @@ function TillerTracker:QUEST_LOG_UPDATE() end function TillerTracker:BAG_UPDATE() + if not private.loaded then + return + end + TillerTracker:UpdateData() TillerTracker:UpdateText() @@ -718,6 +730,10 @@ end function TillerTracker:SetPlanAhead(value) private.db.global.plan_ahead = value + if not private.loaded then + return + end + TillerTracker:UpdateData() TillerTracker:UpdateText() diff --git a/TillerTracker.toc b/TillerTracker.toc index ea5de39..9c34cad 100644 --- a/TillerTracker.toc +++ b/TillerTracker.toc @@ -1,6 +1,6 @@ ## Interface: 90002 ## Title: Tiller Tracker -## Version: 9.0.4 +## Version: 9.0.5 ## Notes: Helps with the daily Tiller food quests ("A Dish for...") by keeping track of what quests have been completed that day, how many dishes need to be cooked, and what materials are required. ## Author: Amanoa ## SavedVariables: TillerTrackerDB