Quantcast

Fixed auto repair setting not being saved properly

ckaotik [12-22-10 - 11:29]
Fixed auto repair setting not being saved properly
Filename
.pkgmeta.txt
Broker_Garbage-Config/options_main.lua
Broker_Garbage/constants.lua
diff --git a/.pkgmeta.txt b/.pkgmeta.txt
index 721ead7..9e079f4 100644
--- a/.pkgmeta.txt
+++ b/.pkgmeta.txt
@@ -1,8 +1,9 @@
 package-as: Broker_Garbage

 move-folders:
- Broker_Garbage/Broker_Garbage-Config: Broker_Garbage-Config
- Broker_Garbage/Broker_Garbage-LootManager: Broker_Garbage-LootManager
+ - Broker_Garbage/Broker_Garbage: Broker_Garbage
+ - Broker_Garbage/Broker_Garbage-Config: Broker_Garbage-Config
+ - Broker_Garbage/Broker_Garbage-LootManager: Broker_Garbage-LootManager

 optional-dependencies:
  - libperiodictable-3-1
diff --git a/Broker_Garbage-Config/options_main.lua b/Broker_Garbage-Config/options_main.lua
index f1bbac6..bdc74e3 100644
--- a/Broker_Garbage-Config/options_main.lua
+++ b/Broker_Garbage-Config/options_main.lua
@@ -31,7 +31,7 @@ local function Options_BasicOptions(pluginID)
 	local checksound = repair:GetScript("OnClick")
 	repair:SetScript("OnClick", function(repair)
 		checksound(repair)
-		Broker_Garbage:ToggleOption("autoRepairGuildTitle", true)
+		Broker_Garbage:ToggleOption("autoRepairAtVendor", true)
 	end)

 	local guildrepair = BGC.CreateCheckBox(behavior, nil, BGC.locale.autoRepairGuildTitle, "TOPLEFT", repair, "BOTTOMLEFT", 14, 4)
diff --git a/Broker_Garbage/constants.lua b/Broker_Garbage/constants.lua
index 155dcbb..8ebeb7d 100644
--- a/Broker_Garbage/constants.lua
+++ b/Broker_Garbage/constants.lua
@@ -2,9 +2,7 @@ local _, BG = ...

 -- default saved variables
 BG.defaultGlobalSettings = {
-	-- lists: key/value tables with
-	-- 		key 	- 	either an itemID -or- a LibPeriodicTable category string
-	--		value 	- 	true -or- int:limit
+	-- lists
 	exclude = {},				-- Keep List
 	include = {},				-- Junk List
 	autoSellList = {},			-- Sell List