fix(options): use {} not { ... } for tab tables

Five Options files seeded their tab tables with { ... } instead of {}.
At chunk scope WoW passes ... = (addonName, addonTable), so each table
got two stray junk entries instead of being empty; { ... } is also a
strict Lua 5.0 parse error. Fixed QuestieOptions.tabs and the Arrow,
General, Keybinds, and Tracker tab tables. Cherry-picked from
phase2-lua50-sweep (the only version-independent fix in that branch).
This commit is contained in:
Xurkon
2026-06-08 16:24:46 -05:00
parent d92ae93870
commit 700445c248
6 changed files with 6 additions and 5 deletions
@@ -61,7 +61,7 @@ local function GetExpandedFontList()
return fonts
end
QuestieOptions.tabs.arrow = { ... }
QuestieOptions.tabs.arrow = {}
function QuestieOptions.tabs.arrow:Initialize()
return {
@@ -32,7 +32,7 @@ local AvailableQuests = QuestieLoader:ImportModule("AvailableQuests")
---@class QuestieMap
local QuestieMap = QuestieLoader:CreateModule("QuestieMap");
QuestieOptions.tabs.general = { ... }
QuestieOptions.tabs.general = {}
local optionsDefaults = QuestieOptionsDefaults:Load()
local _GetAnnounceChannels
@@ -8,7 +8,7 @@ local QuestieOptionsUtils = QuestieLoader:ImportModule("QuestieOptionsUtils")
---@type l10n
local l10n = QuestieLoader:ImportModule("l10n")
QuestieOptions.tabs.keybinds = { ... }
QuestieOptions.tabs.keybinds = {}
local keybindOptions = {}
+1 -1
View File
@@ -12,7 +12,7 @@ local l10n = QuestieLoader:ImportModule("l10n")
---@type QuestieCombatQueue
local QuestieCombatQueue = QuestieLoader:ImportModule("QuestieCombatQueue")
QuestieOptions.tabs = { ... }
QuestieOptions.tabs = {}
QuestieConfigFrame = nil
local AceGUI = LibStub("AceGUI-3.0")
@@ -22,7 +22,7 @@ local l10n = QuestieLoader:ImportModule("l10n")
--- COMPATIBILITY ---
local C_Timer = QuestieCompat.C_Timer
QuestieOptions.tabs.tracker = { ... }
QuestieOptions.tabs.tracker = {}
local _GetShortcuts
local trackerOptions = {}