reupload because I forgot a bug
git [04-05-18 - 19:37]
reupload because I forgot a bug
diff --git a/DASData.lua b/DASData.lua
index fc5af56..d6dd781 100644
--- a/DASData.lua
+++ b/DASData.lua
@@ -99,8 +99,8 @@ function DAS.GetBingoStringFromQuestName(questName)
for bingoString, bingoIndex in pairs(bingoArray) do
if bingoIndex == index then ret = bingoString end
end
-
- ret = DAS.bingoFallback[zoneId][ret] or ret
+ local bingoFallback = DAS.bingoFallback[zoneId] or {}
+ ret = bingoFallback[ret] or ret
if ret ~= "" then
if not(string.find(ret, "%+")) then ret = "+" .. ret end
diff --git a/DASUserSettingsAdapter.lua b/DASUserSettingsAdapter.lua
index ab69889..abe0787 100644
--- a/DASUserSettingsAdapter.lua
+++ b/DASUserSettingsAdapter.lua
@@ -146,9 +146,6 @@ end
function DAS.SetAutoInvite(value)
GetSettings().autoInvite = value
DAS.autoInviting = value
- DailyAutoShare.channelTypes[CHAT_CHANNEL_SAY ] = value
- DailyAutoShare.channelTypes[CHAT_CHANNEL_YELL] = value
- DailyAutoShare.channelTypes[CHAT_CHANNEL_ZONE] = value
DAS.SetButtonStates()
DAS.SetChatListenerStatus(value)
end
diff --git a/DailyAutoShare.txt b/DailyAutoShare.txt
index 4c5508f..3a13e6b 100644
--- a/DailyAutoShare.txt
+++ b/DailyAutoShare.txt
@@ -1,6 +1,6 @@
## Title: DailyAutoShare
## Author: manavortex
-## Version: 2.95
+## Version: 2.95a
## APIVersion: 100022
## SavedVariables: DAS_Settings DAS_Globals
## OptionalDependsOn: LibStub LibAddonMenu-2.0 LibMediaProvider-1.0
diff --git a/DasGui.lua b/DasGui.lua
index 131b9f4..5ecd9bb 100644
--- a/DasGui.lua
+++ b/DasGui.lua
@@ -175,7 +175,8 @@ function DAS.RefreshLabels(forceQuestRefresh, forceSkipQuestRefresh)
local hideLabel = hidden or (hideCompleted and status == DAS_STATUS_COMPLETE) or shouldHideLabel(questName, questList, zoneId)
-- d(zo_strformat("DAS: <<1>> shoud be hidden <<2>>", questName, tostring(hideLabel)))
if hideLabel then
- label:SetHidden(true)
+ label:SetHidden(true)
+ label:SetText("")
else
label:SetHidden(false)
visibleButtonIndex = visibleButtonIndex +1
diff --git a/startup.lua b/startup.lua
index d91159b..39aeb01 100644
--- a/startup.lua
+++ b/startup.lua
@@ -246,6 +246,10 @@ local function OnChatMessage(eventCode, channelType, fromName, messageText, _, f
end
function DAS.SetChatListenerStatus(status)
+
+ DAS.channelTypes[CHAT_CHANNEL_SAY ] = status
+ DAS.channelTypes[CHAT_CHANNEL_YELL] = status
+ DAS.channelTypes[CHAT_CHANNEL_ZONE] = status
if status then
em:RegisterForEvent("DailyAutoShare", EVENT_CHAT_MESSAGE_CHANNEL, OnChatMessage)
else