Skip to content

Commit

Permalink
🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Nov 1, 2024
1 parent 182ea65 commit ef17918
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ read_globals = {
-- FrameXML objects
'ColorPickerFrame',
'EventRegistry',
'Menu',
'MinimalSliderWithSteppersMixin',
'ScrollUtil',
'Settings',
Expand All @@ -52,6 +53,10 @@ read_globals = {
-- FrameXML constants
'DEFAULT_CHAT_FRAME',

-- GlobalStrings
'HEADER_COLON',
'SETTINGS_DEFAULTS',

-- namespaces
'C_AddOns',
'C_CVar',
Expand Down
6 changes: 3 additions & 3 deletions modules/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ do
local defaults = CreateFrame('Button', nil, header, 'UIPanelButtonTemplate')
defaults:SetPoint('TOPRIGHT', -36, -16)
defaults:SetSize(96, 22)
defaults:SetText(_G.SETTINGS_DEFAULTS)
defaults:SetText(SETTINGS_DEFAULTS)
defaults:Hide()
header.DefaultsButton = defaults

Expand Down Expand Up @@ -242,7 +242,7 @@ local function registerSettings(savedvariable, settings)

for _, setting in next, settings do
if firstInstall then
info.firstInstall = true
setting.firstInstall = true
end

registerSetting(category, savedvariable, setting)
Expand Down Expand Up @@ -596,7 +596,7 @@ do
elseif setting.type == 'menu' then
local menu = root:CreateButton(setting.title)
for _, option in next, setting.options do
local radio = menu:CreateRadio(
menu:CreateRadio(
option.label,
GenerateClosure(menuGetter, setting),
GenerateClosure(menuSetter, setting),
Expand Down

0 comments on commit ef17918

Please sign in to comment.