From 80028339e19f43144e5fbd29cfe475f30d16d816 Mon Sep 17 00:00:00 2001 From: pompachomp Date: Fri, 20 Nov 2009 23:32:26 +0000 Subject: [PATCH] Fixed bug where if you had a search filter set when you close ARL and open it up again the search box text wouldn't show the search filter still in progress. Fixes ticket 833 --- ARLFrame.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ARLFrame.lua b/ARLFrame.lua index ce5ecf1..069662d 100644 --- a/ARLFrame.lua +++ b/ARLFrame.lua @@ -4219,9 +4219,10 @@ function addon:DisplayFrame() MainPanel:Show() SetProgressBar() - -- Make sure to reset search gui elements - ARL_LastSearchedText = "" - ARL_SearchText:SetText(L["SEARCH_BOX_DESC"]) + -- Set the search text to the last searched text or the global default string for the search box + -- We should think about either preserving the search everytime arl is open or we clear it completely - pompachomp + ARL_SearchText:SetText(ARL_LastSearchedText or L["SEARCH_BOX_DESC"]) + end ------------------------------------------------------------------------------- -- 1.7.9.5