Skip to content

Commit

Permalink
Make the config load last so an error in it doesn't break all the mod…
Browse files Browse the repository at this point in the history
…ules
  • Loading branch information
funkydude committed Sep 26, 2024
1 parent 5c91048 commit 7162d37
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions BasicConfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
--[[ Basic Config Module ]]--

local name, BCM = ...
BCM.modules[#BCM.modules+1] = function()
if bcmDB.noconfig then return end

BCM.configModule = function()
--[[-------------------------------
-- Core widgets/functions/etc
-------------------------------]]--
Expand Down
4 changes: 4 additions & 0 deletions BasicCore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ BCM.Events.PLAYER_LOGIN = function(frame)
end
end)

if BCM.configModule then
BCM.configModule()
end

--[[ Self-Cleanup ]]--
BCM.modules = nil
frame.PLAYER_LOGIN = nil
Expand Down

0 comments on commit 7162d37

Please sign in to comment.