Fixed error on soulstone mouseover
Wobin [05-13-14 - 12:44]
Fixed error on soulstone mouseover
Adjusted tooltip to play better with CraftStore
diff --git a/Common.lua b/Common.lua
index cf1063e..edd1cc9 100644
--- a/Common.lua
+++ b/Common.lua
@@ -64,7 +64,7 @@ function SousChef.HookInventory()
ZO_ScrollList_RefreshVisible(BANK)
ZO_ScrollList_RefreshVisible(GUILD_BANK)
if not SousChef.settings.showOnClick then
- ZO_PreHookHandler(ItemTooltip, "OnShow", function() zo_callLater(function() SousChef.AddDetails(moc()) end, 100) end)
+ ZO_PreHookHandler(ItemTooltip, "OnShow", function() zo_callLater(function() SousChef.AddDetails(moc()) end, 700) end)
ZO_PreHookHandler(ItemTooltip, "OnUpdate", function() return SousChef.AddDetails(moc()) end)
ZO_PreHookHandler(ItemTooltip, "OnHide", function() rowClicked = nil return false end )
end
diff --git a/Utility.lua b/Utility.lua
index e2d9467..c5bbf50 100644
--- a/Utility.lua
+++ b/Utility.lua
@@ -20,6 +20,7 @@ local languageElements = {"de ", "à ", "la ", }
local separators = {"%^[%a:]+", "-", " " }
function u.StripLanguageIdentifiers(entry)
+ if not entry or entry == "" then return "" end
for _,v in pairs(languageElements) do
entry = entry:gsub(v, "")
end
@@ -35,6 +36,7 @@ function u.Compress(entry)
end
function u.CleanString(entry)
+ if not entry or entry == "" then return "" end
if SousChef.settings.experimentalMatch then
entry = u.StripLanguageIdentifiers(entry)
end