add version in options

This commit is contained in:
Sumsebrum 2021-09-15 00:42:36 +02:00
parent f9b1ac9c51
commit f36883df31

View File

@ -216,7 +216,7 @@ function Gladdy:SetupOptions()
args = { args = {
test = { test = {
order = 1, order = 1,
width = "0.7", width = 0.7,
name = L["Test"], name = L["Test"],
type = "execute", type = "execute",
func = function() func = function()
@ -225,7 +225,7 @@ function Gladdy:SetupOptions()
}, },
hide = { hide = {
order = 2, order = 2,
width = "0.7", width = 0.7,
name = L["Hide"], name = L["Hide"],
type = "execute", type = "execute",
func = function() func = function()
@ -235,19 +235,25 @@ function Gladdy:SetupOptions()
}, },
reload = { reload = {
order = 3, order = 3,
width = "0.7", width = 0.7,
name = L["ReloadUI"], name = L["ReloadUI"],
type = "execute", type = "execute",
func = function() func = function()
ReloadUI() ReloadUI()
end, end,
}, },
version = {
order = 4,
width = 1,
type = "description",
name = " Gladdy v" .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
},
general = { general = {
type = "group", type = "group",
name = L["General"], name = L["General"],
desc = L["General settings"], desc = L["General settings"],
childGroups = "tab", childGroups = "tab",
order = 4, order = 5,
args = { args = {
locked = { locked = {
type = "toggle", type = "toggle",
@ -728,7 +734,7 @@ function Gladdy:SetupOptions()
}, },
} }
local order = 5 local order = 6
for k, v in pairsByKeys(self.modules) do for k, v in pairsByKeys(self.modules) do
self:SetupModule(k, v, order) self:SetupModule(k, v, order)
order = order + 1 order = order + 1