Quantcast

* Extra minor adjustment to cancel message and scan process*.

Niketa [10-20-14 - 08:34]
* Extra minor adjustment to cancel message and scan process*.
Adjusted more to improve initial scan time.
Added option to cancel scan (if it is taking too long) as well as information to expedite the process if it takes too long.
Fixed an issue where looking at guild bank logs other than the guild you are in currently in would try to pull tab names from your current guild (now lists tab # instead of name).
Added compatibility to work with Bagnon.
Filename
Core.lua
diff --git a/Core.lua b/Core.lua
index c43f538..3adf7e4 100644
--- a/Core.lua
+++ b/Core.lua
@@ -515,12 +515,10 @@ function events:ScanLogs()

 	log_table = db.Transactions[guild][date_str]

-	for x = 1, 100 do
-		for i = 1, MAX_GUILDBANK_TABS do
-			-- GuildBankFrameTab2:Click()
-			SetCurrentGuildBankTab(i)
-			QueryGuildBankLog(i)
-		end
+	for i = 1, MAX_GUILDBANK_TABS do
+		-- GuildBankFrameTab2:Click()
+		SetCurrentGuildBankTab(i)
+		QueryGuildBankLog(i)
 	end

 	QueryGuildBankLog(MAX_GUILDBANK_TABS + 1)
@@ -896,7 +894,7 @@ StaticPopupDialogs["PLG_DeleteConfirmation"] = {

 -- -- -- -- -- STATIC POPUPS: SCAN STATUS -- -- -- -- --
 StaticPopupDialogs["PLG_Scanning"] = {
-  text = L["Scanning bank. Please wait... (If this process is taking too long, you can try the following: cancel and scan again, click through some of the bank logs to expedite the process, or reload your UI.)"],
+  text = L["Scanning bank. Please wait... (If this process is taking too long - 15+ sec, you can try the following: cancel and scan again, click through some of the bank logs to expedite the process, or reload your UI.)"],
   button2 = "Cancel",
   OnCancel = function()
     events:UnregisterEvent("GUILDBANKLOG_UPDATE")