Add profile tab with Default/realm-character dropdown foundation

This commit is contained in:
2026-07-07 20:39:17 +02:00
parent d716f209cf
commit ecaf3a7cb9
2 changed files with 124 additions and 3 deletions
+18
View File
@@ -125,6 +125,24 @@ f:SetScript("OnEvent", function(self, event, arg1)
end
if not HideCoADB.profiles then
HideCoADB.profiles = {}
end
if not HideCoADB.profiles["Default"] then
HideCoADB.profiles["Default"] = {}
end
local realmCharProfile = GetRealmName() .. " - " .. UnitName("player")
if not HideCoADB.profiles[realmCharProfile] then
HideCoADB.profiles[realmCharProfile] = {}
end
if not HideCoADB.selectedProfile then
HideCoADB.selectedProfile = "Default"
end
elseif event == "PLAYER_LOGIN" then
ApplySetting()