diff --git a/frames/RecorderBar.lua b/frames/RecorderBar.lua index 68db44c..3fdf54c 100644 --- a/frames/RecorderBar.lua +++ b/frames/RecorderBar.lua @@ -20,10 +20,13 @@ RecordBarFrame:SetBackdropColor(unpack(AprRC.Backdrop.defaultBackdrop)) local function UpdateRecordButton(button) if AprRC.settings.profile.recordBarFrame.isRecording then button.icon:SetTexture("Interface\\AddOns\\APR-Recorder\\assets\\icons\\stop") + APR.settings.profile.enableAddon = false else button.icon:SetTexture("Interface\\AddOns\\APR-Recorder\\assets\\icons\\rec") + APR.settings.profile.enableAddon = true end AprRC.CommandBar:RefreshFrameAnchor() + APR.settings:ToggleAddon() end local function CreateButton(parent, iconPath, message)