Skip to content

Commit

Permalink
[TWW] Add sorting option direction
Browse files Browse the repository at this point in the history
  • Loading branch information
tukz committed Aug 22, 2024
1 parent ae38088 commit 983d319
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tukui/Config/Settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ C["Bags"] = {
["IdentifyQuestItems"] = true,
["FlashNewItems"] = true,
["ItemLevel"] = true,
["SortToBottom"] = false,
["SortToBottom"] = T.Retail and true or false,
["ButtonSize"] = 32,
["Spacing"] = 4,
["ItemsPerRow"] = 12,
Expand Down
8 changes: 8 additions & 0 deletions Tukui/Modules/Inventory/BagsRetail.lua
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ function Bags:Enable()

SetCVar("combinedBags", 1)

if C.Bags.SortToBottom then
C_Container.SetSortBagsRightToLeft(false)
C_Container.SetInsertItemsLeftToRight(true)
else
C_Container.SetSortBagsRightToLeft(true)
C_Container.SetInsertItemsLeftToRight(false)
end

-- Create the AIO container on load
ToggleAllBags()
ToggleAllBags()
Expand Down

0 comments on commit 983d319

Please sign in to comment.