Skip to content

Commit

Permalink
Probably fixing race condition with BetterAddonList, version up, macr…
Browse files Browse the repository at this point in the history
…o button ggui fix
  • Loading branch information
derfloh205 committed Dec 1, 2023
1 parent fefd599 commit e1e85e0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libs/GGUI
Submodule GGUI updated 1 files
+1 −1 GGUI.lua
2 changes: 1 addition & 1 deletion LoadoutReminder.toc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
## X-Wago-ID: n6VPOLGd
## X-WoWI-ID: 26653
## SavedVariablesPerCharacter: LoadoutReminderDBV2, LoadoutReminderGGUIConfig, LoadoutReminderOptions
## Version: 4.0.2
## Version: 4.1.0
## OptionalDeps: BetterAddonList, AddonControlPanel, TalentLoadoutManager

embeds.xml
Expand Down
6 changes: 6 additions & 0 deletions Modules/Addons/Addons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ function LoadoutReminder.ADDONS:Init()
}

for name, plugin in pairs(DEPENDENCY_MAP) do
local loading, loaded = C_AddOns.IsAddOnLoaded(name)
-- try to load the addons on demand if not loaded
if not loaded then
C_AddOns.LoadAddOn(name)
end

if C_AddOns.IsAddOnLoaded(name) then
LoadoutReminder.ADDONS.LIST_ADDON = plugin
LoadoutReminder.ADDONS.AVAILABLE = true
Expand Down

0 comments on commit e1e85e0

Please sign in to comment.