mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
config: every module can now be disabled
Note: This is experimental at the moment, many modules still have an dependency to each other. Expect errors when using this...
This commit is contained in:
@@ -37,7 +37,12 @@ pfUI:SetScript("OnEvent", function()
|
||||
pfUI:LoadConfig()
|
||||
if arg1 == "pfUI" then
|
||||
for i,m in pairs(this.modules) do
|
||||
pfUI.module[m]()
|
||||
-- do not load disabled modules
|
||||
if pfUI_config["disabled"] and pfUI_config["disabled"][m] == "1" then
|
||||
-- message("DEBUG: module " .. m .. " has been disabled")
|
||||
else
|
||||
pfUI.module[m]()
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user