Version 1.1.3 (01-07-2020)

Jarth [07-01-20 - 16:39]
Version 1.1.3 (01-07-2020)
- Fixed issue where buttons would not update when pressed
Filename
CBs_Buttons.lua
CBs_Constants.lua
Changelog
CollectionBars.lua
CollectionBars.txt
diff --git a/CBs_Buttons.lua b/CBs_Buttons.lua
index eda605d..0635c01 100644
--- a/CBs_Buttons.lua
+++ b/CBs_Buttons.lua
@@ -138,7 +138,7 @@ end

 function base:UpdateButtonsState(category, forceId, isAttemptingActivation)
     base:Debug("UpdateButtonsState", category, forceId, isAttemptingActivation)
-    for _, button in ipairs(category.Buttons) do if button ~= nil then button:UpdateState(forceId, isAttemptingActivation, base.Saved.Button.IsActiveActivationEnabled) end end
+    for _, button in pairs(category.Buttons) do if button ~= nil then button:UpdateState(forceId, isAttemptingActivation, base.Saved.Button.IsActiveActivationEnabled) end end
 end

 function base:UpdateButtonsCooldown(category, remaining, duration, cooldown)
diff --git a/CBs_Constants.lua b/CBs_Constants.lua
index e9d65d4..9e87b39 100644
--- a/CBs_Constants.lua
+++ b/CBs_Constants.lua
@@ -7,7 +7,7 @@ Filename: CBs_Constants.lua
 -------------------------------------------------------------------------------------------------
 CollectionBars = {
     WM = GetWindowManager(),
-    Addon = {Name = "CollectionBars", DisplayName = "Collection Bars", Abbreviation = "CBs", Version = 1.1, MinorVersion = 2, SettingsSlash = "/cb", Author = "Jarth"},
+    Addon = {Name = "CollectionBars", DisplayName = "Collection Bars", Abbreviation = "CBs", Version = 1.1, MinorVersion = 3, SettingsSlash = "/cb", Author = "Jarth"},
     AllButtons = {},
     Default = {
         UseAccountSettings = true,
diff --git a/Changelog b/Changelog
index 836c39a..c0c01e6 100644
--- a/Changelog
+++ b/Changelog
@@ -1,6 +1,9 @@
 -------------------------------------------------------------------------------
  Collection bars
 -------------------------------------------------------------------------------
+Version 1.1.3 (01-07-2020)
+- Fixed issue where buttons would not update when pressed
+
 Version 1.1.2 (28-06-2020)
 - Fixed issue where keybindings would not show in some instances
 - Fixed issue where verbose logging would not disable with debug logging
diff --git a/CollectionBars.lua b/CollectionBars.lua
index ae8670f..25dde6e 100644
--- a/CollectionBars.lua
+++ b/CollectionBars.lua
@@ -116,7 +116,7 @@ end
 function base:RemoveFrame(category)
     base:Debug("RemoveFrame", category)
     base:RemoveFragments(category)
-    for _, button in ipairs(category.Buttons) do if button ~= nil then button:SetHidden(true) end end
+    for _, button in pairs(category.Buttons) do if button ~= nil then button:SetHidden(true) end end

     if category.Frames.Frame ~= nil then
         base:Debug("RemoveFrame:hide", category.Frames.Frame)
diff --git a/CollectionBars.txt b/CollectionBars.txt
index eef756e..ef4c538 100644
--- a/CollectionBars.txt
+++ b/CollectionBars.txt
@@ -6,8 +6,8 @@

 ## APIVersion: 100031
 ## Title: Collection Bars
-## AddOnVersion: 10102
-## Version: 1.1.2
+## AddOnVersion: 10103
+## Version: 1.1.3
 ## Author: Jarth
 ## Description: Show collection bars and activate collections with key or button press. Shortcuts: Settings window: /cb OptionalDependsOn: LibDebugLogger (Logging can be enabled in settings)
 ##