Skip to content

Commit

Permalink
Fixed some errors when trying trying to create/edit macros and search…
Browse files Browse the repository at this point in the history
… for icons (fixes #30)
  • Loading branch information
Numynum committed May 6, 2023
1 parent 92ffa8a commit 4c83164
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ function lib:LoadKeywords(addonName)

-- Get the revision # of the specified addon (if it's enabled and loadable).
local addonRevision = nil
local addonLoadable = addonName and select(5, GetAddOnInfo(addonName))
local addonLoadable = addonName and select(4, GetAddOnInfo(addonName))
if addonLoadable then
addonRevision = tonumber(GetAddOnMetadata(addonName, "X-Revision"))
end

-- Then, get the revision # of the default library (if it's enabled and loadable).
local defaultRevision = nil
local defaultLoadable = select(5, GetAddOnInfo("AdvancedIconSelector-KeywordData"))
local defaultLoadable = select(4, GetAddOnInfo("AdvancedIconSelector-KeywordData"))
if defaultLoadable then
defaultRevision = tonumber(GetAddOnMetadata("AdvancedIconSelector-KeywordData", "X-Revision"))
end
Expand Down

0 comments on commit 4c83164

Please sign in to comment.