From 7d8ab1f7c6b320bf879155d638c0c13b47e4b8e9 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 18 Mar 2016 17:55:20 +0100 Subject: [PATCH] slightly changed cont. button behavior --- search_frame.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/search_frame.lua b/search_frame.lua index c211d98..0c37c3c 100644 --- a/search_frame.lua +++ b/search_frame.lua @@ -185,8 +185,12 @@ function public.on_load() btn:RegisterForClicks('LeftButtonUp', 'RightButtonUp') btn:SetScript('OnClick', function() private.search_box:ClearFocus() - local resume = this:GetText() == 'Cont.' and arg1 ~= 'RightButton' - public.start_search(nil, resume) + if arg1 == 'RightButton' and this:GetText() == 'Cont.' then + aborted_search = nil + this:SetText('Search') + else + public.start_search(nil, this:GetText() == 'Cont.') + end end) private.search_button = btn end