From 1074f25bd5524d0c7c48d8c59e51b3bbf5bcb35b Mon Sep 17 00:00:00 2001 From: Aldric Ducreux Date: Fri, 19 Jul 2024 11:34:46 +0200 Subject: [PATCH] Fix typo on commandBarFrame in config --- Config.lua | 2 +- frames/CommandsBar.lua | 4 ++-- frames/RecorderBar.lua | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Config.lua b/Config.lua index c9634d0..5187f74 100644 --- a/Config.lua +++ b/Config.lua @@ -44,7 +44,7 @@ function AprRC.settings:InitializeSettings() position = {}, isRecording = false, }, - commandsBarFrame = { + commandBarFrame = { rotation = "HORIZONTAL", position = {}, }, diff --git a/frames/CommandsBar.lua b/frames/CommandsBar.lua index 0830f8d..0369660 100644 --- a/frames/CommandsBar.lua +++ b/frames/CommandsBar.lua @@ -3,16 +3,16 @@ local L = LibStub("AceLocale-3.0"):GetLocale("APR-Recorder") local LibWindow = LibStub("LibWindow-1.1") AprRC.CommandBar = AprRC:NewModule('CommandBar') +AprRC.CommandBar.btnList = {} local FRAME_WIDTH = 80 local FRAME_HEIGHT = 35 -AprRC.CommandBar.btnList = {} - --------------------------------------------------------------------------------------- --------------------------------- CommandBar Frames ----------------------------------- --------------------------------------------------------------------------------------- +print('OUIIIIIIIIIIIIIIIIIIIII') local CommandBarFrame = CreateFrame("Frame", "CommandBarFrame", UIParent, "BackdropTemplate") CommandBarFrame:SetSize(FRAME_WIDTH, FRAME_HEIGHT) CommandBarFrame:SetFrameStrata("MEDIUM") diff --git a/frames/RecorderBar.lua b/frames/RecorderBar.lua index f27ccc6..0e7da2c 100644 --- a/frames/RecorderBar.lua +++ b/frames/RecorderBar.lua @@ -87,12 +87,10 @@ updateBtn:SetScript("OnClick", function() AprRC.settings:OpenSettings(AprRC.title) end) - --------------------------------------------------------------------------------------- ----------------------------- Function Recorder Frames -------------------------------- --------------------------------------------------------------------------------------- - function AprRC.record:OnInit() LibWindow.RegisterConfig(RecordBarFrame, AprRC.settings.profile.recordBarFrame.position) RecordBarFrame.RegisteredForLibWindow = true