Skip to content

Commit

Permalink
Fixed settings not being remembered across reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvienna committed Sep 5, 2024
1 parent fd83b8c commit ea781b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea781b0

Please sign in to comment.