fixed a bug when recopying the log
git [04-12-18 - 05:18]
fixed a bug when recopying the log
diff --git a/DailyAutoShare/DailyAutoShare.txt b/DailyAutoShare/DailyAutoShare.txt
index d4c0be5..a953f41 100644
--- a/DailyAutoShare/DailyAutoShare.txt
+++ b/DailyAutoShare/DailyAutoShare.txt
@@ -1,6 +1,6 @@
## Title: DailyAutoShare
## Author: manavortex
-## Version: 3.0.6
+## Version: 3.0.7
## APIVersion: 100022
## SavedVariables: DAS_Settings DAS_Globals
## OptionalDependsOn: LibStub LibAddonMenu-2.0 LibMediaProvider-1.0 LibBinaryEncode pchat
diff --git a/DailyAutoShare/startup.lua b/DailyAutoShare/startup.lua
index e0971fb..d01fa3b 100644
--- a/DailyAutoShare/startup.lua
+++ b/DailyAutoShare/startup.lua
@@ -381,6 +381,7 @@ local function handleLog()
local afterEight = tonumber(GetTimeString():sub(0, 2)) >= 08
local currentDate = tonumber(GetDate())
local lastDate
+ DAS.globalSettings.completionLog = DAS.globalSettings.completionLog or {}
for dateString, dateLog in pairs(DAS.globalSettings.completionLog) do
if dateString < currentDate -5 then
DAS.globalSettings.completionLog[dateString] = nil
@@ -389,7 +390,7 @@ local function handleLog()
end
end
if not afterEight then
- DAS.settings.completionLog[currentDate] = dateString
+ DAS.globalSettings.completionLog[currentDate] = DAS.globalSettings.completionLog[dateString]
end
end