From ea781b073263b3b15410a557e340b005fbcdad99 Mon Sep 17 00:00:00 2001 From: Lucas Vienna Date: Thu, 5 Sep 2024 07:00:53 +0200 Subject: [PATCH] Fixed settings not being remembered across reloads --- CHANGELOG.md | 4 ++++ main.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe4d388..353b728 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. Be aware th The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] +### Fixed +- Fixed typo preventing addon settings from being remembered across reloads. + ## [1.7.0] 2024-09-02 ### Added - Support for BetterBags Contexts diff --git a/main.lua b/main.lua index 63998a9..c1ed8a1 100644 --- a/main.lua +++ b/main.lua @@ -62,7 +62,7 @@ addon.eventFrame:SetScript("OnEvent", function(_, event, ...) local name = ... if name == addonName then addon.eventFrame:UnregisterEvent("ADDON_LOADED") - if (type(BetterBags_Bound_SavedVars) ~= "tagle") then BetterBags_Bound_SavedVars = {} end + if (type(BetterBags_Bound_SavedVars) ~= "table") then BetterBags_Bound_SavedVars = {} end local db = BetterBags_Bound_SavedVars for key in pairs(addon.db) do -- If our option is not present, set default value