diff --git a/Libs/GGUI b/Libs/GGUI index 3a32e89..1b33782 160000 --- a/Libs/GGUI +++ b/Libs/GGUI @@ -1 +1 @@ -Subproject commit 3a32e89fbdf7d855e7556f3da32fce8f9e8d541b +Subproject commit 1b33782f93bacc1d48779b371d2eb2c0bc342c69 diff --git a/LoadoutReminder.toc b/LoadoutReminder.toc index 47b71b1..635aeef 100644 --- a/LoadoutReminder.toc +++ b/LoadoutReminder.toc @@ -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 diff --git a/Modules/Addons/Addons.lua b/Modules/Addons/Addons.lua index f1c02ee..cf55fbe 100644 --- a/Modules/Addons/Addons.lua +++ b/Modules/Addons/Addons.lua @@ -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