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:
shagu
2016-10-17 00:39:26 +02:00
parent 4e836b95af
commit 61079a06d2
3 changed files with 17 additions and 3 deletions
+6 -1
View File
@@ -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)