Quantcast

-Fixed a dumb bug where the right click menu for LDB wasn't working. (I blame git)

Xruptor [11-28-11 - 13:32]
-Fixed a dumb bug where the right click menu for LDB wasn't working. (I blame git)
Filename
BagSync.lua
BagSync.toc
localization/localization.lua
diff --git a/BagSync.lua b/BagSync.lua
index e584425..12b55e3 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -58,16 +58,16 @@ local dataobj = ldb:NewDataObject("BagSyncLDB", {
 				BagSync_SearchFrame:Show()
 			end
 		elseif button == 'RightButton' and BagSync_TokensFrame then
-			if BagSync_TokensFrame:IsVisible() then
-				BagSync_TokensFrame:Hide()
-			else
-				BagSync_TokensFrame:Show()
+			if bgsMinimapDD then
+				ToggleDropDownMenu(1, nil, bgsMinimapDD, 'cursor', 0, 0)
 			end
 		end
 	end,

 	OnTooltipShow = function(self)
-		self:Hide()
+		self:AddLine("BagSync")
+		self:AddLine(L["Left Click = Search Window"])
+		self:AddLine(L["Right Click = BagSync Menu"])
 	end
 })

diff --git a/BagSync.toc b/BagSync.toc
index 2b7959b..8d8f46d 100644
--- a/BagSync.toc
+++ b/BagSync.toc
@@ -2,7 +2,7 @@
 ## Title: BagSync
 ## Notes: BagSync tracks your characters items and displays it within tooltips.
 ## Author: Xruptor
-## Version: 6.5
+## Version: 6.5.1
 ## SavedVariables: BagSyncDB, BagSyncOpt, BagSyncGUILD_DB, BagSyncTOKEN_DB

 localization\localization.lua
diff --git a/localization/localization.lua b/localization/localization.lua
index 0778bb7..a7e29da 100644
--- a/localization/localization.lua
+++ b/localization/localization.lua
@@ -25,6 +25,8 @@
 -- ["A FixDB has been performed on BagSync!  The database is now optimized!"] = "",
 -- ["ON"] = "",
 -- ["OFF"] = "",
+-- ["Left Click = Search Window"] = "",
+-- ["Right Click = BagSync Menu"] = "",
 -- ----THESE ARE FOR SLASH COMMANDS
 -- ["[itemname]"] = "",
 -- ["search"] = "",
@@ -115,7 +117,8 @@ BAGSYNC_L = GetLocale() == "zhCN" and {
 	["/bgs tokens - Opens the tokens/currency window."] 							= "/bgs tokens - Öffnet das Abzeichenfenster.",
 	["/bgs profiles - Opens the profiles window."] 									= "/bgs profiles - Öffnet das Profilfenster.",
 	["/bgs fixdb - Runs the database fix (FixDB) on BagSync."] 						= "/bgs fixdb - Führt eine Reparatur der Datenbank (FixDB) aus.",
-
+	["Left Click = Search Window"] 													= "Links Klick = Suchen",
+	["Right Click = BagSync Menu"] 													= "Rechts Klick = BagSync Menu",
 } or { }

 setmetatable(BAGSYNC_L, {__index = function(self, key) rawset(self, key, key); return key; end})