diff --git a/CHANGELOG.md b/CHANGELOG.md index 382a952..17dd50b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 1.2.2 +- Fixed: lists (recipes, bags, bank, search results) jumped back to the top every few seconds. +- Fixed: a dropped profession stayed in the list (the shared file / chat brought it back). Dropped professions are now remembered and the removal syncs between accounts. + ## 1.2.1 - `/ade del` now also ignores the character afterwards (it was re-added by the next chat broadcast). New `/ade unignore ` and `/ade chat` (switch guild / party / raid sync off). diff --git a/ui_show.lua b/ui_show.lua index d836e53..48f8999 100644 --- a/ui_show.lua +++ b/ui_show.lua @@ -53,7 +53,10 @@ local function ShowSearch(q) else AA.stitle:SetText(table.getn(AA.resList) .. " stack group(s), " .. total .. " item(s) on " .. nc .. " alt(s) |cff808080(item count alt location)|r") end - AA.ResetScroll(AA.ssf) + if AA.sctx ~= q then + AA.sctx = q + AA.ResetScroll(AA.ssf) + end AA.UpdateResults() AA.S:Show() end @@ -229,7 +232,11 @@ local function ShowProfs(c) end AA.PR.empty:Show() end - AA.ResetScroll(AA.PR.sf) + local ctx = tostring(AA.selKey) .. "|" .. tostring(AA.profSel) .. "|" .. mode .. "|" .. sort + if AA.recCtx ~= ctx then -- periodic refreshes must not throw the list back to the top + AA.recCtx = ctx + AA.ResetScroll(AA.PR.sf) + end AA.UpdateRecipes() end