Skip to content

Commit

Permalink
Hide the Auto Track Guild Rep toggle in Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
phyber committed Sep 15, 2019
1 parent 49c1f65 commit 466f0f7
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Core.lua
Expand Up @@ -445,6 +445,7 @@ local function GetOptions(uiTypes, uiName, appName)
}
return options
end

if appName == "XPBarNone-XP" then
local options = {
type = "group",
Expand Down Expand Up @@ -483,6 +484,7 @@ local function GetOptions(uiTypes, uiName, appName)
}
return options
end

if appName == "XPBarNone-Rep" then
local options = {
type = "group",
Expand Down Expand Up @@ -515,12 +517,6 @@ local function GetOptions(uiTypes, uiName, appName)
XPBarNone:ToggleAutoWatch()
end,
},
autotrackguild = {
name = L["Auto Track Guild Reputation"],
desc = L["Automatically track your guild reputation increases."],
type = "toggle",
order = 250,
},
showrepbar = {
name = L["Show Reputation"],
desc = L["Show the reputation bar instead of the XP bar."],
Expand All @@ -532,8 +528,21 @@ local function GetOptions(uiTypes, uiName, appName)
},
},
}

-- Hide guild rep tracking toggle in Classic
if not IsClassic() then
options.args.autotrackguild = {
name = L["Auto Track Guild Reputation"],
desc = L["Automatically track your guild reputation increases."],
type = "toggle",
order = 250,
}
end

return options
end

-- This appName never gets called if we're IsClassic
if appName == "XPBarNone-Azer" then
local options = {
type = "group",
Expand Down Expand Up @@ -567,6 +576,7 @@ local function GetOptions(uiTypes, uiName, appName)
}
return options
end

if appName == "XPBarNone-Colours" then
local options = {
type = "group",
Expand Down Expand Up @@ -664,6 +674,7 @@ local function GetOptions(uiTypes, uiName, appName)

return options
end

if appName == "XPBarNone-RepMenu" then
local options = {
type = "group",
Expand Down

0 comments on commit 466f0f7

Please sign in to comment.