Quantcast

Added option to disable the BagSync version information at login.

Xruptor [10-28-16 - 21:00]
Added option to disable the BagSync version information at login.
Filename
BagSync.lua
BagSync.toc
locale/enUS.lua
modules/config.lua
diff --git a/BagSync.lua b/BagSync.lua
index 5e5a750..8c28520 100644
--- a/BagSync.lua
+++ b/BagSync.lua
@@ -184,6 +184,7 @@ function BSYC:StartupDB()
 	if self.options.enableRealmIDTags == nil then self.options.enableRealmIDTags = true end
 	if self.options.enableRealmAstrickName == nil then self.options.enableRealmAstrickName = false end
 	if self.options.enableRealmShortName == nil then self.options.enableRealmShortName = false end
+	if self.options.enableLoginVersionInfo == nil then self.options.enableLoginVersionInfo = true end

 	--setup the default colors
 	if self.options.colors == nil then self.options.colors = {} end
@@ -1521,8 +1522,10 @@ function BSYC:OnEnable()
 	--register the slash command
 	self:RegisterChatCommand("bgs", "ChatCommand")
 	self:RegisterChatCommand("bagsync", "ChatCommand")
-
-	self:Print("[v|cFFDF2B2B"..ver.."|r] /bgs, /bagsync")
+
+	if self.options.enableLoginVersionInfo then
+		self:Print("[v|cFFDF2B2B"..ver.."|r] /bgs, /bagsync")
+	end
 end

 ------------------------------
diff --git a/BagSync.toc b/BagSync.toc
index bb3f8cd..e2b0c49 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: 10.8
+## Version: 10.9
 ## OptionalDeps: tekDebug
 ## SavedVariables: BagSyncDB, BagSyncOpt, BagSyncGUILD_DB, BagSyncCURRENCY_DB, BagSyncPROFESSION_DB, BagSyncBLACKLIST_DB, BagSync_REALMKEY

diff --git a/locale/enUS.lua b/locale/enUS.lua
index 43aeb47..f045235 100644
--- a/locale/enUS.lua
+++ b/locale/enUS.lua
@@ -74,6 +74,7 @@ L.HelpConfigWindow = "/bgs config - Opens the BagSync Config Window"
 L.HelpProfessionsWindow = "/bgs professions - Opens the professions window."
 L.HelpBlacklistWindow = "/bgs blacklist - Opens the blacklist window."
 L.EnableBagSyncTooltip = "Enable BagSync Tooltips"
+L.EnableLoginVersionInfo = "Display BagSync version text at login."
 L.DisplayTotal = "Display [Total] amount."
 L.DisplayGuildName = "Display [Guild Name] for guild bank items."
 L.DisplayGuildBank = "Display guild bank items."
diff --git a/modules/config.lua b/modules/config.lua
index bc42e61..edce58d 100644
--- a/modules/config.lua
+++ b/modules/config.lua
@@ -68,7 +68,7 @@ options.args.main = {
 	name = L.ConfigMain,
 	desc = L.ConfigMainHeader,
 	args = {
-		tooltip = {
+		enablebagsynctooltip = {
 			order = 1,
 			type = "toggle",
 			name = L.EnableBagSyncTooltip,
@@ -78,7 +78,7 @@ options.args.main = {
 			set = set,
 			arg = "main.enableTooltips",
 		},
-		enable = {
+		enabletooltipsearchonly = {
 			order = 2,
 			type = "toggle",
 			name = L.DisplayTooltipOnlySearch,
@@ -88,7 +88,7 @@ options.args.main = {
 			set = set,
 			arg = "main.tooltipOnlySearch",
 		},
-		enable = {
+		enableminimap = {
 			order = 3,
 			type = "toggle",
 			name = L.DisplayMinimap,
@@ -98,8 +98,18 @@ options.args.main = {
 			set = set,
 			arg = "minimap.enableMinimap",
 		},
-		keybindblacklist = {
+		enableversiontext = {
 			order = 4,
+			type = "toggle",
+			name = L.EnableLoginVersionInfo,
+			width = "full",
+			descStyle = "hide",
+			get = get,
+			set = set,
+			arg = "main.enableLoginVersionInfo",
+		},
+		keybindblacklist = {
+			order = 5,
 			type = "keybinding",
 			name = L.KeybindBlacklist,
 			width = "full",
@@ -109,7 +119,7 @@ options.args.main = {
 			arg = "keybind.BAGSYNCBLACKLIST",
 		},
 		keybindcurrency = {
-			order = 5,
+			order = 6,
 			type = "keybinding",
 			name = L.KeybindCurrency,
 			width = "full",
@@ -119,7 +129,7 @@ options.args.main = {
 			arg = "keybind.BAGSYNCCURRENCY",
 		},
 		keybindgold = {
-			order = 6,
+			order = 7,
 			type = "keybinding",
 			name = L.KeybindGold,
 			width = "full",
@@ -129,7 +139,7 @@ options.args.main = {
 			arg = "keybind.BAGSYNCGOLD",
 		},
 		keybindprofessions = {
-			order = 7,
+			order = 8,
 			type = "keybinding",
 			name = L.KeybindProfessions,
 			width = "full",
@@ -139,7 +149,7 @@ options.args.main = {
 			arg = "keybind.BAGSYNCPROFESSIONS",
 		},
 		keybindprofiles = {
-			order = 8,
+			order = 9,
 			type = "keybinding",
 			name = L.KeybindProfiles,
 			width = "full",
@@ -149,7 +159,7 @@ options.args.main = {
 			arg = "keybind.BAGSYNCPROFILES",
 		},
 		keybindsearch = {
-			order = 9,
+			order = 10,
 			type = "keybinding",
 			name = L.KeybindSearch,
 			width = "full",