Add profile tab with Default/realm-character dropdown foundation
This commit is contained in:
+18
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user