feat: icons tab added and option to turn on/off unused item to red
This commit is contained in:
+11
-1
@@ -998,6 +998,12 @@ function Guda_BankFrame_MergeStacks()
|
||||
return
|
||||
end
|
||||
|
||||
-- Check if sorting is already in progress
|
||||
if addon.Modules.SortEngine.sortingInProgress then
|
||||
addon:Print("Sorting already in progress, please wait...")
|
||||
return
|
||||
end
|
||||
|
||||
local bagIDs = addon.Constants.BANK_BAGS
|
||||
local moveQueue = {}
|
||||
|
||||
@@ -1090,14 +1096,18 @@ function Guda_BankFrame_MergeStacks()
|
||||
return
|
||||
end
|
||||
|
||||
-- Set sorting flag
|
||||
addon.Modules.SortEngine.sortingInProgress = true
|
||||
|
||||
-- Process queue with delays
|
||||
local queueIndex = 1
|
||||
local retryCount = 0
|
||||
local totalMoves = table.getn(moveQueue)
|
||||
|
||||
|
||||
local function ProcessNextMove()
|
||||
if queueIndex > table.getn(moveQueue) then
|
||||
addon:Print("Merged " .. totalMoves .. " stack(s)")
|
||||
addon.Modules.SortEngine.sortingInProgress = false
|
||||
BankFrame:Update()
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user