Version 1.0.10 (27-05-2020)

Jarth [05-27-20 - 18:46]
Version 1.0.10 (27-05-2020)
- Updated APIVersion to 100031
- Now always show labels when opening the settings window by slash command or hotkey
-- Same toggle as right click on a label
Filename
CBs_Bindings.lua
CBs_Constants.lua
CBs_Settings.lua
Changelog
CollectionBars.txt
diff --git a/CBs_Bindings.lua b/CBs_Bindings.lua
index 62e7100..9451dd4 100644
--- a/CBs_Bindings.lua
+++ b/CBs_Bindings.lua
@@ -11,7 +11,7 @@ local texts = base.Texts
 -------------------------------------------------------------------------------------------------
 -- FUNCTIONS --
 -------------------------------------------------------------------------------------------------
-function CBs_ShowSettings() base.ShowSettings() end
+function CBs_ShowSettings() base.ToggleEnableSettings(base.ShowSettings()) end

 function CBs_Clicked(keyId)
     local control = base.WM:GetMouseOverControl()
@@ -49,9 +49,7 @@ function base.SetbindingText(cid) if base.Buttons[cid] then base.Buttons[cid]:Se
 function base.InitializeBindings()
     local bindingsName = texts.Components.SIBindingName .. base.Addon.Abbreviation .. texts.Helpers.Lowdash
     ZO_CreateStringId(bindingsName .. texts.Components.Settings, texts.Components.Settings)
-    for key, _ in ipairs(base.Saved.Bindings) do
-        ZO_CreateStringId(bindingsName .. key, base.Addon.Abbreviation .. texts.Helpers.Lowdash .. key)
-    end
+    for key, _ in ipairs(base.Saved.Bindings) do ZO_CreateStringId(bindingsName .. key, base.Addon.Abbreviation .. texts.Helpers.Lowdash .. key) end
 end

-function base.InitializeReverseBinding() for keyId, collectibleId in ipairs(base.Saved.Bindings) do if collectibleId > 0 then base.Global.ReverseBindings[collectibleId] = keyId end end end
\ No newline at end of file
+function base.InitializeReverseBinding() for keyId, collectibleId in ipairs(base.Saved.Bindings) do if collectibleId > 0 then base.Global.ReverseBindings[collectibleId] = keyId end end end
diff --git a/CBs_Constants.lua b/CBs_Constants.lua
index cc4c6f0..8d45559 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.0, MinorVersion = 0.9, SettingsSlash = "/cb", Author = "Jarth"},
+    Addon = {Name = "CollectionBars", DisplayName = "Collection Bars", Abbreviation = "CBs", Version = 1.0, MinorVersion = 0.10, SettingsSlash = "/cb", Author = "Jarth"},
     Buttons = {},
     Default = {
         BarDepth = 5,
diff --git a/CBs_Settings.lua b/CBs_Settings.lua
index 4be7e2e..57e07d1 100644
--- a/CBs_Settings.lua
+++ b/CBs_Settings.lua
@@ -11,10 +11,14 @@ local texts = base.Texts
 -------------------------------------------------------------------------------------------------
 -- FUNCTIONS --
 -------------------------------------------------------------------------------------------------
-function base.InitializeSettingsSlash() SLASH_COMMANDS[base.Addon.SettingsSlash] = function() base.ShowSettings() end end
+function base.InitializeSettingsSlash() SLASH_COMMANDS[base.Addon.SettingsSlash] = function() base.ToggleEnableSettings(base.ShowSettings()) end end

-function base.ToggleEnableSettings()
-    base.Global.EnableSettings = not base.Global.EnableSettings
+function base.ToggleEnableSettings(forceShow)
+    if not (forceShow == nil) then
+        base.Global.EnableSettings = forceShow
+    else
+        base.Global.EnableSettings = not base.Global.EnableSettings
+    end
     base.RestoreFrames()
     base.RestoreCombineLabels()
 end
@@ -110,6 +114,7 @@ function base.ShowSettings(category)
         base.Global.SettingsList.category = show and category or nil
         base.Global.SettingsList:RefreshData()
     end
+    return show
 end

 function base.UpdateSettingsType(show, category)
diff --git a/Changelog b/Changelog
index 5904956..26d48a9 100644
--- a/Changelog
+++ b/Changelog
@@ -1,6 +1,11 @@
 -------------------------------------------------------------------------------
  Collection bars
 -------------------------------------------------------------------------------
+Version 1.0.10 (27-05-2020)
+- Updated APIVersion to 100031
+- Now always show labels when opening the settings window by slash command or hotkey
+-- Same toggle as right click on a label
+
 Version 1.0.9 (25-05-2020)
 - Renamed Selection to Collectibles
 - If "Use account settings" is on it will no longer create Character settings.
diff --git a/CollectionBars.txt b/CollectionBars.txt
index 77fbd2a..87e38b4 100644
--- a/CollectionBars.txt
+++ b/CollectionBars.txt
@@ -4,9 +4,9 @@
 ; States and/or other countries. All rights reserved.
 ; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms

-## APIVersion: 100030
+## APIVersion: 100031
 ## Title: Collection Bars
-## Version: 1.0.9
+## Version: 1.0.10
 ## Author: Jarth
 ## Description: Show collection bars and activate collections with key or button press. Shortcuts: Settings window: /cb
 ##