From f1548d47f0f8c4de9d6e743386b630f76b99f82f Mon Sep 17 00:00:00 2001 From: Spit <19otari98@gmail.com> Date: Tue, 24 Sep 2024 11:47:22 +0300 Subject: [PATCH] Update AtlasLoot.lua Hide navigation button if we click QuickLooks in Atlas --- Core/AtlasLoot.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Core/AtlasLoot.lua b/Core/AtlasLoot.lua index c3a309e..c316a48 100644 --- a/Core/AtlasLoot.lua +++ b/Core/AtlasLoot.lua @@ -1546,6 +1546,16 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame) getglobal("AtlasLootItemsFrame_BACK"):Show(); getglobal("AtlasLootItemsFrame_BACK").lootpage = tablebase.Back_Page; getglobal("AtlasLootItemsFrame_BACK").title = tablebase.Back_Title; + --Hide navigation buttons if we click Quicklooks in Atlas + if AtlasFrame and AtlasFrame:IsVisible() then + for i=1, 4 do + if AtlasLootCharDB["QuickLooks"][i] and dataID == AtlasLootCharDB["QuickLooks"][i][1] then + getglobal("AtlasLootItemsFrame_BACK"):Hide(); + getglobal("AtlasLootItemsFrame_NEXT"):Hide(); + getglobal("AtlasLootItemsFrame_PREV"):Hide(); + end + end + end end end end